Initial pristine ansible directory
authorLorin Hochstein <lhochstein@netflix.com>
Sun, 22 Jan 2017 06:14:09 +0000 (22:14 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Sun, 22 Jan 2017 06:14:09 +0000 (22:14 -0800)
ch13/ansible/ansible.cfg [new file with mode: 0644]
ch13/ansible/container.yml [new file with mode: 0644]
ch13/ansible/main.yml [new file with mode: 0644]
ch13/ansible/meta.yml [new file with mode: 0644]
ch13/ansible/requirements.txt [new file with mode: 0644]
ch13/ansible/requirements.yml [new file with mode: 0644]

diff --git a/ch13/ansible/ansible.cfg b/ch13/ansible/ansible.cfg
new file mode 100644 (file)
index 0000000..460145a
--- /dev/null
@@ -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 (file)
index 0000000..fac9126
--- /dev/null
@@ -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 (file)
index 0000000..198f400
--- /dev/null
@@ -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 (file)
index 0000000..3ef38e4
--- /dev/null
@@ -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 (file)
index 0000000..854d21d
--- /dev/null
@@ -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 (file)
index 0000000..fa5c693
--- /dev/null
@@ -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