try an undercloud02 created by ansible

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2018-07-18 08:17:35 +00:00
parent da32a2cf5b
commit 02de405b78
5 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,4 @@
[rhel7-rhos13]
name = rhel7 openstack $basearch
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-openstack-13-rpms
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

View file

@ -0,0 +1,15 @@
---
nm: 255.255.255.128
gw: 172.23.1.254
dns: 8.8.8.8
volgroup: /dev/vg_guests
eth0_ip: 172.23.0.1
eth0_nm: 255.255.254.0
ks_url: http://209.132.181.6/repo/rhel/ks/kvm-rhel-7-ext
ks_repo: http://209.132.181.6/repo/rhel/RHEL7-x86_64/
vmhost: cloud-noc01.cloud.fedoraproject.org
datacenter: newcloud

View file

@ -1102,6 +1102,9 @@ fed-cloud15.cloud.fedoraproject.org
#fed-cloud-ppc01.cloud.fedoraproject.org
fed-cloud-ppc02.cloud.fedoraproject.org
[newcloud-undercloud]
undercloud02.cloud.fedoraproject.org
#[newcloud:children]
#newcloud-control
#newcloud-compute

View file

@ -0,0 +1,29 @@
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=newcloud-undercloud"
- name: make the box be real
hosts: newcloud-undercloud
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- fas_client
- rsyncd
- sudo
- { role: openvpn/client,
when: env != "staging" }
- undercloud
tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -0,0 +1,16 @@
---
- name: Install undercloud repo file
copy: src="{{ files }}/newcloud/rhos13.repo" dest=/etc/yum.repos.d/rhos13.repo
tags:
- config
- packages
- yumrepos
- undercloud
- name: Install packages
package: name={{ item }} state=present
with_items:
- python-tripleoclient
tags:
- packages
- undercloud