소스 검색

Change galera bootstrap scripts files permissions

During Galera bootstrap stage the following help scripts are created:
    /usr/local/sbin/galera_init.sh
    /usr/local/sbin/galera_bootstrap.sh
Both contain mysql root password in a plain text.

Set file permissions to 750

Change-Id: Ie0d5fa7f81ef7ccbd6b9def7a4f2141c32dcc4ee
Relaited-prod: https://mirantis.jira.com/browse/PROD-15487
master
Oleksandr Bryndzii 6 년 전
부모
커밋
e6245c5ab8
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -2
      galera/master.sls
  2. +2
    -2
      galera/slave.sls

+ 2
- 2
galera/master.sls 파일 보기

@@ -116,7 +116,7 @@ galera_conf_debian:
galera_init_script:
file.managed:
- name: /usr/local/sbin/galera_init.sh
- mode: 755
- mode: 750
- source: salt://galera/files/init_bootstrap.sh
- defaults:
service: {{ master|yaml }}
@@ -126,7 +126,7 @@ galera_init_script:
galera_bootstrap_script:
file.managed:
- name: /usr/local/sbin/galera_bootstrap.sh
- mode: 755
- mode: 750
- source: salt://galera/files/bootstrap.sh
- defaults:
service: {{ master|yaml }}

+ 2
- 2
galera/slave.sls 파일 보기

@@ -115,7 +115,7 @@ galera_conf_debian:
galera_init_script:
file.managed:
- name: /usr/local/sbin/galera_init.sh
- mode: 755
- mode: 750
- source: salt://galera/files/init_bootstrap.sh
- defaults:
service: {{ slave|yaml }}
@@ -124,7 +124,7 @@ galera_init_script:
galera_bootstrap_script:
file.managed:
- name: /usr/local/sbin/galera_bootstrap.sh
- mode: 755
- mode: 750
- defaults:
service: {{ slave|yaml }}
slave: True

Loading…
취소
저장