Merge "CI: Remove playbook-setup-nodes.yml"
This commit is contained in:
commit
9c614564c6
@ -1,39 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: all
|
|
||||||
become: true
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Ensure /etc/hostname is valid for SELinux
|
|
||||||
command: restorecon -v /etc/hostname
|
|
||||||
when: ansible_os_family == 'RedHat'
|
|
||||||
|
|
||||||
- name: Install wget package
|
|
||||||
package: name=wget
|
|
||||||
|
|
||||||
- name: Add sudo group
|
|
||||||
group:
|
|
||||||
name: sudo
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Allow 'sudo' group to have passwordless sudo
|
|
||||||
lineinfile:
|
|
||||||
dest: /etc/sudoers
|
|
||||||
state: present
|
|
||||||
line: "%sudo ALL=(ALL) NOPASSWD: ALL"
|
|
||||||
|
|
||||||
- name: Add jenkins to sudo group
|
|
||||||
user:
|
|
||||||
name: jenkins
|
|
||||||
append: yes
|
|
||||||
groups: "sudo"
|
|
||||||
|
|
||||||
|
|
||||||
- hosts: all
|
|
||||||
become: true
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Create log directory for node
|
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
path: /tmp/{{ inventory_hostname }}
|
|
||||||
become: false
|
|
@ -97,10 +97,6 @@ EOF
|
|||||||
ansible all -i ${RAW_INVENTORY} -e ansible_user=$USER -m setup > /tmp/logs/ansible/initial-setup
|
ansible all -i ${RAW_INVENTORY} -e ansible_user=$USER -m setup > /tmp/logs/ansible/initial-setup
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_node {
|
|
||||||
ansible-playbook -i ${RAW_INVENTORY} -e ansible_user=$USER tools/playbook-setup-nodes.yml
|
|
||||||
}
|
|
||||||
|
|
||||||
function prepare_images {
|
function prepare_images {
|
||||||
if [[ "${BUILD_IMAGE}" == "False" ]]; then
|
if [[ "${BUILD_IMAGE}" == "False" ]]; then
|
||||||
return
|
return
|
||||||
@ -115,7 +111,6 @@ setup_openstack_clients
|
|||||||
|
|
||||||
setup_ansible
|
setup_ansible
|
||||||
setup_config
|
setup_config
|
||||||
setup_node
|
|
||||||
|
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -e ansible_user=$USER -vvv bootstrap-servers &> /tmp/logs/ansible/bootstrap-servers
|
tools/kolla-ansible -i ${RAW_INVENTORY} -e ansible_user=$USER -vvv bootstrap-servers &> /tmp/logs/ansible/bootstrap-servers
|
||||||
prepare_images
|
prepare_images
|
||||||
|
Loading…
Reference in New Issue
Block a user