Skip to content

Commit

Permalink
Merge pull request #584 from codenrhoden/ansible-cfg
Browse files Browse the repository at this point in the history
Clean up and *use* the ansible.cfg file
  • Loading branch information
k8s-ci-robot authored Apr 12, 2021
2 parents 7496c9f + 96f269d commit 3e271f5
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 33 deletions.
1 change: 1 addition & 0 deletions images/capi/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Exceptions
!ansible
!ansible.cfg
!cloudinit
!hack
!packer
Expand Down
1 change: 1 addition & 0 deletions images/capi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ USER imagebuilder
WORKDIR /home/imagebuilder/

COPY --chown=imagebuilder:imagebuilder ansible ansible/
COPY --chown=imagebuilder:imagebuilder ansible.cfg ansible.cfg
COPY --chown=imagebuilder:imagebuilder cloudinit cloudinit/
COPY --chown=imagebuilder:imagebuilder hack hack/
COPY --chown=imagebuilder:imagebuilder packer packer/
Expand Down
8 changes: 3 additions & 5 deletions images/capi/ansible/ansible.cfg → images/capi/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

[default]
remote_tmp = /tmp/.ansible/
filter_plugins = ./filter_plugins
retry_files_enabled = False
[defaults]
remote_tmp = /tmp/.ansible

[ssh_connection]
pipelining = True
pipelining = False
1 change: 0 additions & 1 deletion images/capi/ansible/playbook.retry

This file was deleted.

3 changes: 0 additions & 3 deletions images/capi/packer/ami/packer-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
],
"provisioners": [
{
"ansible_env_vars": [
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
],
"extra_arguments": [
"-e",
"ansible_winrm_server_cert_validation=ignore",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/ami/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down
3 changes: 0 additions & 3 deletions images/capi/packer/azure/packer-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@
"type": "powershell"
},
{
"ansible_env_vars": [
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
],
"extra_arguments": [
"-e",
"ansible_winrm_server_cert_validation=ignore ansible_winrm_operation_timeout_sec=120 ansible_winrm_read_timeout_sec=150",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/azure/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/digitalocean/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/gce/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/ova/packer-haproxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@
"provisioners": [
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down
6 changes: 2 additions & 4 deletions images/capi/packer/ova/packer-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@
"provisioners": [
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"except": [
"vmware-iso-base",
Expand Down Expand Up @@ -362,8 +361,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"except": [
"vmware-iso-base",
Expand Down
3 changes: 0 additions & 3 deletions images/capi/packer/ova/packer-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@
],
"provisioners": [
{
"ansible_env_vars": [
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
],
"extra_arguments": [
"-e",
"ansible_winrm_server_cert_validation=ignore",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/qemu/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down
3 changes: 1 addition & 2 deletions images/capi/packer/raw/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
},
{
"ansible_env_vars": [
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'",
"ANSIBLE_REMOTE_TEMP='/tmp/.ansible/'"
"ANSIBLE_SSH_ARGS='{{user `existing_ansible_ssh_args`}} -o IdentitiesOnly=yes'"
],
"extra_arguments": [
"--extra-vars",
Expand Down

0 comments on commit 3e271f5

Please sign in to comment.