diff options
author | Yifei Xue <xueyifei@huawei.com> | 2017-12-21 04:10:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-21 04:10:03 +0000 |
commit | 4074d39e93d7e7697dd2aaad2e08433ca0a60221 (patch) | |
tree | e5b51294a3e7cc247293c1f17ee6f9351bd778b9 /deploy/adapters/ansible/roles/config-osa | |
parent | aae5ff9e006cdaf910eee47d4c472360393f6e56 (diff) | |
parent | 751c0889380ee85d8cb1436e1c5a8c5ac3568dce (diff) |
Merge "Bug fix for chrony configuration"
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa')
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 7 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index 75e89b06..49e4e26d 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -88,6 +88,13 @@ delay: 10 when: hostvars[hostvars[inventory_hostname]['groups']['controller'][0]]['local_mirror'] == 'CentOS' +- name: update the directory of chrony key + lineinfile: + dest: /etc/ansible/roles/ansible-hardening/templates/chrony.conf.j2 + regexp: '^keyfile' + line: 'keyfile /etc/chrony.keys' + when: hostvars[hostvars[inventory_hostname]['groups']['controller'][0]]['local_mirror'] == 'CentOS' + - name: add mariadb local repository blockinfile: dest: /etc/openstack_deploy/user_variables.yml diff --git a/deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 b/deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 index 88a3233b..5fa999a5 100644 --- a/deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 +++ b/deploy/adapters/ansible/roles/config-osa/templates/user_variables.yml.j2 @@ -63,3 +63,6 @@ neutron_provider_networks: {% endif %} security_sshd_permit_root_login: yes + +security_ntp_servers: + - 45.79.111.114 |