EC2 instances are started w/ Ansible which injects the following `cloud-init.j2`:
»»»»»»»»»»»»»»»» start cloud-init.j2 #cloud-config # vim: syntax=yaml repo_update: true repo_upgrade: all
groups: - {{ devops_group }}
users: {% for i in company_devops %} - name: {{ i }} gecos: {{ company_employees[i].name }} primary_group: {{ devops_group }} groups: wheel no_user_group: True ssh_authorized_keys: {% for key in company_employees[i].pub_keys %} - {{ key }} {% endfor %} {% endfor %}
runcmd: - echo 'JXdoZWVsCUFMTD0oQUxMKQlOT1BBU1NXRDogQUxMCg==' | base64 -d > /etc/sudoers.d/wheel - chage -E -1 -d 01/01/2017 -M 99999 root - rm -f /root/anaconda-ks.cfg /root/original-ks.cfg - /usr/bin/hostnamectl set-hostname {{ inventory_hostname }} - echo yes > {{ machine_is_ansible_ready_file }}
»»»»»»»»»»»»»»»» end cloud-init.j2
The initial machine is started w/ this. From that machine a snapshot is created. Another machine is started from the snapshot and this latter machine has this issue.
EC2 instances are started w/ Ansible which injects the following `cloud-init.j2`:
»»»»»»»»»»»»»»»» start cloud-init.j2
#cloud-config
# vim: syntax=yaml
repo_update: true
repo_upgrade: all
groups:
- {{ devops_group }}
users: employees[ i].name }} authorized_ keys: employees[ i].pub_ keys %}
{% for i in company_devops %}
- name: {{ i }}
gecos: {{ company_
primary_group: {{ devops_group }}
groups: wheel
no_user_group: True
ssh_
{% for key in company_
- {{ key }}
{% endfor %}
{% endfor %}
runcmd: 0oQUxMKQlOT1BBU 1NXRDogQUxMCg= =' | base64 -d > /etc/sudoers. d/wheel ks.cfg /root/original- ks.cfg hostnamectl set-hostname {{ inventory_hostname }} is_ansible_ ready_file }}
- echo 'JXdoZWVsCUFMTD
- chage -E -1 -d 01/01/2017 -M 99999 root
- rm -f /root/anaconda-
- /usr/bin/
- echo yes > {{ machine_
»»»»»»»»»»»»»»»» end cloud-init.j2
The initial machine is started w/ this.
From that machine a snapshot is created.
Another machine is started from the snapshot and this latter machine has this issue.