From: Lorin Hochstein Date: Sun, 23 Apr 2017 04:42:27 +0000 (-0700) Subject: Initial ansible container X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=8c885631756f5d0844914c01abaf0fd219ffa558;p=ansiblebook.git Initial ansible container --- diff --git a/ans-con/ansible-requirements.txt b/ans-con/ansible-requirements.txt new file mode 100644 index 0000000..3633bfa --- /dev/null +++ b/ans-con/ansible-requirements.txt @@ -0,0 +1,2 @@ +# These are the python requirements for your Ansible Container builder. +# You do not need to include Ansible itself in this file. \ No newline at end of file diff --git a/ans-con/ansible.cfg b/ans-con/ansible.cfg new file mode 100644 index 0000000..460145a --- /dev/null +++ b/ans-con/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/ans-con/container.yml b/ans-con/container.yml new file mode 100644 index 0000000..86e911d --- /dev/null +++ b/ans-con/container.yml @@ -0,0 +1,60 @@ +version: "2" +settings: + # The deployment_output_path is mounted to the Conductor container, so + # that the `run` and `deployment` commands can write generated Ansible + # playbooks to it. + # deployment_output_path: ~/ansible-deployment + # The Conductor container does the heavy lifting, and provides a portable + # Python runtime for building your target containers. It should be derived + # from the same distribution as you're building your target containers with. + conductor_base: centos:7 + + # When using the k8s or openshift engines, use the following to authorize with the API. + # Values set here will be passed to the Ansible modules. Any file paths will be mounted + # to the conductor container, allowing the `run` command to access the API. + #k8s_auth: + # path to a K8s config file + #config_file: + # name of a context found within the config.json file + #context: + # URL for accessing the K8s API + #host: + # An API authentication token + #api_key: + # Path to a ca cert file + #ssl_ca_cert: + # Path to a cert file + #cert_file: + # Path to a key file + #key_file: + #boolean, indicating if SSL certs should be validated + #verify_ssl: + + # When using the k8s or openshift engines, use the following to set the namespace. + # If not set, the project name will be used. For openshift, the namespace maps to a project, + # and description and display_name are supported. + #k8s_namespace: + # name: + # description: + # display_name: + +services: {} + # Add your containers here, specifying the base image you want to build from + # For example: + # + # web: + # from: centos:7 + # roles: + # - apache-container + # 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 diff --git a/ans-con/meta.yml b/ans-con/meta.yml new file mode 100644 index 0000000..ef0499a --- /dev/null +++ b/ans-con/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.9.0.0 + + # 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/ans-con/requirements.yml b/ans-con/requirements.yml new file mode 100644 index 0000000..dfed8e7 --- /dev/null +++ b/ans-con/requirements.yml @@ -0,0 +1,5 @@ +# Install Ansible Roles +# --------------------- +# When making the Conductor image `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 installed prior to running main.yml. \ No newline at end of file