diff --git a/releasenotes/notes/tripleo-bootstrap-721b73d21ade7d6d.yaml b/releasenotes/notes/tripleo-bootstrap-721b73d21ade7d6d.yaml new file mode 100644 index 000000000..184dabd46 --- /dev/null +++ b/releasenotes/notes/tripleo-bootstrap-721b73d21ade7d6d.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Introduce a new Ansible role, called tripleo-bootstrap which will take + care of prepare an environment so we can deploy TripleO. diff --git a/roles/tripleo-bootstrap/README.md b/roles/tripleo-bootstrap/README.md new file mode 100644 index 000000000..5ef42f58d --- /dev/null +++ b/roles/tripleo-bootstrap/README.md @@ -0,0 +1,39 @@ +tripleo-bootstrap +================= + +An Ansible role to bootstrap a TripleO deployment. + +Requirements +------------ + +This section needs to be documented. + +Role variables +-------------- + +- packages_bootstrap: -- list of required packages to bootstrap TripleO. + +Dependencies +------------ + +This role needs repositories to be deployed as it works now. + +Example Playbook +---------------- + +Sample playbook to call the role: + + - name: Bootstrap TripleO + hosts: all + roles: + - tripleo-bootstrap + +License +------- + +Free software: Apache License (2.0) + +Author Information +------------------ + +OpenStack TripleO team diff --git a/roles/tripleo-bootstrap/defaults/main.yml b/roles/tripleo-bootstrap/defaults/main.yml new file mode 100644 index 000000000..3e1c82ddf --- /dev/null +++ b/roles/tripleo-bootstrap/defaults/main.yml @@ -0,0 +1,9 @@ +--- + +# List of packages that are requred to bootstrap TripleO. +# The list is used by `yum` Ansible module, so it takes +# a comma separated list of packages or (as of 2.0) a list +# of packages. +packages_bootstrap: + - openstack-heat-agents + - jq diff --git a/roles/tripleo-bootstrap/handlers/main.yml b/roles/tripleo-bootstrap/handlers/main.yml new file mode 100644 index 000000000..ed97d539c --- /dev/null +++ b/roles/tripleo-bootstrap/handlers/main.yml @@ -0,0 +1 @@ +--- diff --git a/roles/tripleo-bootstrap/meta/main.yml b/roles/tripleo-bootstrap/meta/main.yml new file mode 100644 index 000000000..ed97d539c --- /dev/null +++ b/roles/tripleo-bootstrap/meta/main.yml @@ -0,0 +1 @@ +--- diff --git a/roles/tripleo-bootstrap/tasks/main.yml b/roles/tripleo-bootstrap/tasks/main.yml new file mode 100644 index 000000000..84c8fba54 --- /dev/null +++ b/roles/tripleo-bootstrap/tasks/main.yml @@ -0,0 +1,6 @@ +--- + +- name: Deploy required packages to bootstrap TripleO + yum: + name: "{{ packages_bootstrap }}" + become: true diff --git a/setup.cfg b/setup.cfg index 5de7d436b..e7625be25 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,6 +42,7 @@ data_files = share/tripleo-common/image-yaml = image-yaml/* share/tripleo-common/workbooks = workbooks/* share/tripleo-common/healthcheck = healthcheck/* + /usr/share/ansible/roles/ = roles/* [build_sphinx] source-dir = doc/source