users:
-
default
- name: ec2-user
primary-group: users
groups: users
lock-passwd:
false
sudo: [
'ALL=(ALL) NOPASSWD:ALL'
]
disable_root:
1
ssh_pwauth:
0
users:
-
default
- name: ec2-user
primary-group: users
groups: users
lock-passwd:
false
sudo: [
'ALL=(ALL) NOPASSWD:ALL'
]
disable_root:
1
ssh_pwauth:
1
class profiles::aws {
# Enable SSH Password Authentication $cloud_init_file = '/etc/cloud/cloud.cfg' $ssh_pwauth_property_name = "ssh_pwauth" $ssh_pwauth_desired_state = "${ssh_pwauth_property_name}: 1" exec {'enable_ssh_pwauth': command => "/bin/sed -i 's/ssh_pwauth.*/${ssh_pwauth_desired_state}/' ${cloud_init_file}", unless => "/bin/grep '${ssh_pwauth_desired_state}' ${cloud_init_file}", }
> [1] mailto:puppet-users+unsub...@googlegroups.com