From 2aa8749a85ca39138fa7a9bb1bff2088efa20d62 Mon Sep 17 00:00:00 2001 From: jerome Date: Mon, 12 Jun 2023 14:24:35 +0200 Subject: commit initial --- cloud_init.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cloud_init.cfg (limited to 'cloud_init.cfg') 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 + + -- cgit v1.2.3