diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-15 14:01:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 14:01:00 -0400 |
commit | 0862f7b6f1448d6ea1fe6c836b3ba1de0afb4485 (patch) | |
tree | 1a77af9e1a76d66a0826f1bdc514a7b658bed39a | |
parent | 96b98a07e6cc6a7fb437383d5716d8147dd22fcd (diff) | |
parent | 12123e816abf6c066b8fafe0abd231bd383e16c5 (diff) | |
download | openshift-0862f7b6f1448d6ea1fe6c836b3ba1de0afb4485.tar.gz openshift-0862f7b6f1448d6ea1fe6c836b3ba1de0afb4485.tar.bz2 openshift-0862f7b6f1448d6ea1fe6c836b3ba1de0afb4485.tar.xz openshift-0862f7b6f1448d6ea1fe6c836b3ba1de0afb4485.zip |
Merge pull request #4460 from ashcrow/system-container-ansible-cfg
System container honor provided ansible cfg
3 files changed, 21 insertions, 1 deletions
diff --git a/images/installer/system-container/README.md b/images/installer/system-container/README.md index dc95307e5..fbcd47c4a 100644 --- a/images/installer/system-container/README.md +++ b/images/installer/system-container/README.md @@ -11,3 +11,21 @@ These files are needed to run the installer using an [Atomic System container](h * service.template - Template file for the systemd service. * tmpfiles.template - Template file for systemd-tmpfiles. + +## Options + +These options may be set via the ``atomic`` ``--set`` flag. For defaults see ``root/exports/manifest.json`` + +* OPTS - Additional options to pass to ansible when running the installer + +* VAR_LIB_OPENSHIFT_INSTALLER - Full path of the installer code to mount into the container + +* VAR_LOG_OPENSHIFT_LOG - Full path of the log file to mount into the container + +* PLAYBOOK_FILE - Full path of the playbook inside the container + +* HOME_ROOT - Full path on host to mount as the root home directory inside the container (for .ssh/, etc..) + +* ANSIBLE_CONFIG - Full path for the ansible configuration file to use inside the container + +* INVENTORY_FILE - Full path for the inventory to use from the host diff --git a/images/installer/system-container/root/exports/config.json.template b/images/installer/system-container/root/exports/config.json.template index 397ac941a..739c0080f 100644 --- a/images/installer/system-container/root/exports/config.json.template +++ b/images/installer/system-container/root/exports/config.json.template @@ -21,7 +21,8 @@ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "OPTS=$OPTS", - "PLAYBOOK_FILE=$PLAYBOOK_FILE" + "PLAYBOOK_FILE=$PLAYBOOK_FILE", + "ANSIBLE_CONFIG=$ANSIBLE_CONFIG" ], "cwd": "/opt/app-root/src/", "rlimits": [ diff --git a/images/installer/system-container/root/exports/manifest.json b/images/installer/system-container/root/exports/manifest.json index f735494d4..321a84ee8 100644 --- a/images/installer/system-container/root/exports/manifest.json +++ b/images/installer/system-container/root/exports/manifest.json @@ -6,6 +6,7 @@ "VAR_LOG_OPENSHIFT_LOG": "/var/log/ansible.log", "PLAYBOOK_FILE": "/usr/share/ansible/openshift-ansible/playbooks/byo/config.yml", "HOME_ROOT": "/root", + "ANSIBLE_CONFIG": "/usr/share/ansible/openshift-ansible/ansible.cfg", "INVENTORY_FILE": "/dev/null" } } |