summaryrefslogtreecommitdiff
path: root/cloud_init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_init.cfg')
-rw-r--r--cloud_init.cfg24
1 files changed, 24 insertions, 0 deletions
diff --git a/cloud_init.cfg b/cloud_init.cfg
new file mode 100644
index 0000000..4927615
--- /dev/null
+++ b/cloud_init.cfg
@@ -0,0 +1,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
+
+