blob: 4927615449baa88a707cc8e8f51c8be7b0b8149c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#cloud-config
users:
- name: jerome
ssh_authorized_keys:
- ssh-rsa AAAAB3xxx...x8= jerome@localhost
sudo: ['ALL=(ALL) NOPASSWD:ALL']
shell: /bin/bash
groups: wheel
runcmd:
- cp /etc/skel/.bash* /home/jerome/
- chown jerome:jerome /home/jerome/.bash*
- hostnamectl set-hostname centos
write_files:
- path: /home/jerome/helloworld
content: |
#!/bin/bash
echo "Hello World !"
permissions: 0755
|