Puppet does not create ssh configs and keys during Jenkins cloud-init.
Meantime it creates ssh configs and keys when execute 'puppet agent' again.
Cloud-init log example:
ESC[0;32mInfo: Computing checksum on file /etc/postfix/main.cfESC[0m
ESC[0;32mInfo: /Stage[main]/Psick::Postfix::Tp/Tp::Conf[postfix]/File[/etc/postfix/main.cf]: Filebucketed /etc/postfix/main.cf to puppet with sum a37044eae25332d653166fd7b6257961ESC[0m
ESC[mNotice: /Stage[main]/Psick::Postfix::Tp/Tp::Conf[postfix]/File[/etc/postfix/main.cf]/content: content changed '{md5}a37044eae25332d653166fd7b6257961' to '{md5}27d0c6171dfd8be5c9ff3d80b3fa3e2f'ESC[0m
ESC[0;32mInfo: /Stage[main]/Psick::Postfix::Tp/Tp::Conf[postfix]/File[/etc/postfix/main.cf]: Scheduling refresh of Service[postfix]ESC[0m
ESC[mNotice: /Stage[main]/Psick::Postfix::Tp/Tp::Install[postfix]/Service[postfix]: Triggered 'refresh' from 1 eventESC[0m
ESC[mNotice: /Stage[main]/Psick::Openssh::Tp/Tp::Install[openssh]/File[/etc/tp/app/openssh]/ensure: defined content as '{md5}b8c72a09c295cb7e46e974399425db17'ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/config20190118-4477-1pgenz0.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/config.pp, line: 77)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/config20190118-4477-1pgenz0.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/config.pp, line: 77)
Wrapped exception:
No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/config20190118-4477-1pgenz0.lockESC[0m
ESC[1;31mError: /Stage[main]/Psick::Openssh/Psick::Openssh::Config[jenkins-config]/File[/var/lib/jenkins/.ssh/config]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/config20190118-4477-1pgenz0.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/config.pp, line: 77)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read20190118-4477-g3a7tn.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 50)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read20190118-4477-g3a7tn.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 50)
Wrapped exception:
No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read20190118-4477-g3a7tn.lockESC[0m
ESC[1;31mError: /Stage[main]/Psick::Openssh/Psick::Openssh::Keypair[web_deploy]/File[/var/lib/jenkins/.ssh/github-web-deploy-read]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read20190118-4477-g3a7tn.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 50)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read.pub20190118-4477-1nuo4k5.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 64)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read.pub20190118-4477-1nuo4k5.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 64)
Wrapped exception:
No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read.pub20190118-4477-1nuo4k5.lockESC[0m
ESC[1;31mError: /Stage[main]/Psick::Openssh/Psick::Openssh::Keypair[web_deploy]/File[/var/lib/jenkins/.ssh/github-web-deploy-read.pub]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-web-deploy-read.pub20190118-4477-1nuo4k5.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 64)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-ci-control-deploy-read20190118-4477-12h1i7v.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 50)ESC[0m
ESC[1;31mError: Could not set 'present' on ensure: No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-ci-control-deploy-read20190118-4477-12h1i7v.lock (file: /etc/puppetlabs/code/environments/production/modules/psick/manifests/openssh/keypair.pp, line: 50)
Wrapped exception:
No such file or directory @ dir_s_mkdir - /var/lib/jenkins/.ssh/github-ci-control-deploy-read20190118-4477-12h1i7v.lockESC[0m
Puppet does not create ssh configs and keys during Jenkins cloud-init. Meantime it creates ssh configs and keys when execute 'puppet agent' again.
Cloud-init log example: