updated repo pathing for new org
Change-Id: I68d7daf1fda3d8b5cd538f684e973366a3fd61c8 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
ee03bfc5ba
commit
0779d1ecb9
62
.gitignore
vendored
Normal file
62
.gitignore
vendored
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# Compiled source #
|
||||||
|
###################
|
||||||
|
*.com
|
||||||
|
*.class
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.so
|
||||||
|
*.pyc
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
doc/build/
|
||||||
|
|
||||||
|
# Packages #
|
||||||
|
############
|
||||||
|
# it's better to unpack these files and commit the raw source
|
||||||
|
# git has its own built in compression methods
|
||||||
|
*.7z
|
||||||
|
*.dmg
|
||||||
|
*.gz
|
||||||
|
*.iso
|
||||||
|
*.jar
|
||||||
|
*.rar
|
||||||
|
*.tar
|
||||||
|
*.zip
|
||||||
|
|
||||||
|
# Logs and databases #
|
||||||
|
######################
|
||||||
|
*.log
|
||||||
|
*.sql
|
||||||
|
*.sqlite
|
||||||
|
|
||||||
|
# OS generated files #
|
||||||
|
######################
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
.idea
|
||||||
|
.tox
|
||||||
|
*.sublime*
|
||||||
|
*.egg-info
|
||||||
|
Icon?
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
.eggs
|
||||||
|
|
||||||
|
# User driven backup files #
|
||||||
|
############################
|
||||||
|
*.bak
|
||||||
|
|
||||||
|
# Generated by pbr while building docs
|
||||||
|
######################################
|
||||||
|
AUTHORS
|
||||||
|
ChangeLog
|
||||||
|
|
||||||
|
# Files created by releasenotes build
|
||||||
|
releasenotes/build
|
||||||
|
|
||||||
|
# Test temp files
|
||||||
|
tests/plugins
|
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=openstack/openstack-ansible-rabbitmq_server.git
|
@ -12,6 +12,7 @@
|
|||||||
version: master
|
version: master
|
||||||
- name: lxc_hosts
|
- name: lxc_hosts
|
||||||
src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts
|
src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts
|
||||||
|
scm: git
|
||||||
version: master
|
version: master
|
||||||
- name: lxc_container_create
|
- name: lxc_container_create
|
||||||
src: https://git.openstack.org/openstack/openstack-ansible-lxc_container_create
|
src: https://git.openstack.org/openstack/openstack-ansible-lxc_container_create
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
roles_path = ../../
|
roles_path = ../../
|
||||||
remote_tmp = ../.ansible/tmp/
|
remote_tmp = ../.ansible/tmp/
|
||||||
|
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
control_path = /tmp/%%h-%%r
|
||||||
|
@ -13,13 +13,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Playbook for pre-role testing 1of2
|
- name: Playbook for pre-role testing 1of3
|
||||||
hosts: localhost
|
hosts: 127.0.0.1
|
||||||
connection: local
|
connection: local
|
||||||
|
become: false
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Ensure root ssh key
|
- name: Create ssh key pair for root
|
||||||
user:
|
user:
|
||||||
name: "{{ ansible_env.USER | default('root') }}"
|
name: "{{ ansible_ssh_user }}"
|
||||||
generate_ssh_key: "yes"
|
generate_ssh_key: "yes"
|
||||||
ssh_key_bits: 2048
|
ssh_key_bits: 2048
|
||||||
ssh_key_file: ".ssh/id_rsa"
|
ssh_key_file: ".ssh/id_rsa"
|
||||||
@ -28,6 +29,18 @@
|
|||||||
register: key_get
|
register: key_get
|
||||||
- set_fact:
|
- set_fact:
|
||||||
lxc_container_ssh_key: "{{ key_get.stdout }}"
|
lxc_container_ssh_key: "{{ key_get.stdout }}"
|
||||||
|
|
||||||
|
- name: Playbook for pre-role testing 2of3
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
pre_tasks:
|
||||||
|
- name: Ensure root's new public ssh key is in authorized_keys
|
||||||
|
authorized_key:
|
||||||
|
user: root
|
||||||
|
key: "{{ hostvars['127.0.0.1']['lxc_container_ssh_key'] }}"
|
||||||
|
manage_dir: no
|
||||||
|
- set_fact:
|
||||||
|
lxc_container_ssh_key: "{{ hostvars['127.0.0.1']['lxc_container_ssh_key'] }}"
|
||||||
roles:
|
roles:
|
||||||
- role: "lxc_hosts"
|
- role: "lxc_hosts"
|
||||||
lxc_net_address: 10.100.100.1
|
lxc_net_address: 10.100.100.1
|
||||||
@ -80,7 +93,7 @@
|
|||||||
- { name: "container2", service: "service2", address: "10.100.100.102" }
|
- { name: "container2", service: "service2", address: "10.100.100.102" }
|
||||||
- { name: "container3", service: "service3", address: "10.100.100.103" }
|
- { name: "container3", service: "service3", address: "10.100.100.103" }
|
||||||
|
|
||||||
- name: Playbook for pre-role testing 2of2
|
- name: Playbook for pre-role testing 3of3
|
||||||
hosts: all_containers
|
hosts: all_containers
|
||||||
connection: local
|
connection: local
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
@ -90,9 +103,18 @@
|
|||||||
lxc_container_backing_store: dir
|
lxc_container_backing_store: dir
|
||||||
global_environment_variables:
|
global_environment_variables:
|
||||||
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
|
post_tasks:
|
||||||
|
- name: Wait for ssh to be available
|
||||||
|
local_action:
|
||||||
|
module: wait_for
|
||||||
|
port: "{{ ansible_ssh_port | default('22') }}"
|
||||||
|
host: "{{ ansible_ssh_host | default(inventory_hostname) }}"
|
||||||
|
search_regex: OpenSSH
|
||||||
|
delay: 1
|
||||||
|
|
||||||
- name: Playbook for role testing
|
- name: Playbook for role testing
|
||||||
hosts: rabbitmq_all
|
hosts: rabbitmq_all
|
||||||
|
user: root
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
roles:
|
roles:
|
||||||
- role: "{{ rolename | basename }}"
|
- role: "{{ rolename | basename }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user