From a13b8f0b811e628d867646ed6801f27155424e87 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 21 Jan 2017 22:14:09 -0800 Subject: [PATCH] Initial pristine ansible directory --- ch13/ansible/ansible.cfg | 2 ++ ch13/ansible/container.yml | 19 +++++++++++++++++++ ch13/ansible/main.yml | 9 +++++++++ ch13/ansible/meta.yml | 33 +++++++++++++++++++++++++++++++++ ch13/ansible/requirements.txt | 3 +++ ch13/ansible/requirements.yml | 5 +++++ 6 files changed, 71 insertions(+) create mode 100644 ch13/ansible/ansible.cfg create mode 100644 ch13/ansible/container.yml create mode 100644 ch13/ansible/main.yml create mode 100644 ch13/ansible/meta.yml create mode 100644 ch13/ansible/requirements.txt create mode 100644 ch13/ansible/requirements.yml diff --git a/ch13/ansible/ansible.cfg b/ch13/ansible/ansible.cfg new file mode 100644 index 0000000..460145a --- /dev/null +++ b/ch13/ansible/ansible.cfg @@ -0,0 +1,2 @@ +# Set any ansible.cfg overrides in this file. +# See: https://docs.ansible.com/ansible/intro_configuration.html#explanation-of-values-by-section diff --git a/ch13/ansible/container.yml b/ch13/ansible/container.yml new file mode 100644 index 0000000..fac9126 --- /dev/null +++ b/ch13/ansible/container.yml @@ -0,0 +1,19 @@ +version: "2" +services: + # Add your containers here, specifying the base image you want to build from + # For example: + # + # web: + # image: ubuntu:trusty + # ports: + # - "80:80" + # command: ['/usr/bin/dumb-init', '/usr/sbin/apache2ctl', '-D', 'FOREGROUND'] + # dev_overrides: + # environment: + # - "DEBUG=1" + # +registries: {} + # Add optional registries used for deployment. For example: + # google: + # url: https://gcr.io + # namespace: my-cool-project-xxxxxx \ No newline at end of file diff --git a/ch13/ansible/main.yml b/ch13/ansible/main.yml new file mode 100644 index 0000000..198f400 --- /dev/null +++ b/ch13/ansible/main.yml @@ -0,0 +1,9 @@ +# This should be your Ansible playbooks to provision your containers. +# An inventory will be automatically created using the names of the services +# from your container.yml file. +# Add any roles or other modules you'll need to this directory too. +# For many examples of roles, check out Ansible Galaxy: https://galaxy.ansible.com/ +# +--- +- hosts: all + gather_facts: false \ No newline at end of file diff --git a/ch13/ansible/meta.yml b/ch13/ansible/meta.yml new file mode 100644 index 0000000..3ef38e4 --- /dev/null +++ b/ch13/ansible/meta.yml @@ -0,0 +1,33 @@ +galaxy_info: + author: Your name + description: Describe your awesome application here. + company: Your company + + # If the issue tracker for your role is not on GitHub, uncomment the + # next line and provide a value + # issue_tracker_url: + + # Some suggested licenses: + # - BSD (default) + # - MIT + # - GPLv2 + # - GPLv3 + # - Apache + # - CC-BY + license: license (GPLv2, CC-BY, etc) + + min_ansible_container_version: 0.3.0-pre + + # Optionally specify the branch Galaxy will use when accessing the GitHub + # repo for this role. During role install, if no tags are available, + # Galaxy will use this branch. During import Galaxy will access files on + # this branch. If travis integration is cofigured, only notification for this + # branch will be accepted. Otherwise, in all cases, the repo's default branch + # (usually master) will be used. + #github_branch: + + tags: [] + # List tags for your app here, one per line. A tag is a keyword that describes and categorizes the app. + # Users will find your app by searching for tags. Be sure to remove the '[]' above. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. Maximum 20 tags. diff --git a/ch13/ansible/requirements.txt b/ch13/ansible/requirements.txt new file mode 100644 index 0000000..854d21d --- /dev/null +++ b/ch13/ansible/requirements.txt @@ -0,0 +1,3 @@ +# These are the python requirements for your Ansible Container builder. +# You do not need to include Ansible itself in this file. +docker-py==1.10.6 \ No newline at end of file diff --git a/ch13/ansible/requirements.yml b/ch13/ansible/requirements.yml new file mode 100644 index 0000000..fa5c693 --- /dev/null +++ b/ch13/ansible/requirements.yml @@ -0,0 +1,5 @@ +# Install Ansible Roles +# --------------------- +# When the build process starts `ansible-galaxy install -r requirements.yml` is executed +# using this file. Follow the instructions at http://docs.ansible.com/ansible/galaxy.html +# to include any roles you want intalled prior to running main.yml. \ No newline at end of file -- 2.44.0