Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config:
- boot.autostart: "false"
- security.nesting: "true"
- security.privileged: "true"
- environment.DISPLAY: :0
- user.user-data: |
- #cloud-config
- users:
- - name: yogan
- ssh_authorized_keys:
- - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDtXft3O2stRlBSs581TY5S1pDOyNytieqXzJdWaF5DhVokBDF0bjNLTFf5dIoLstwF4fSRmKahjgiIctVYYT0RgSoY1e+u2JTl3An2Umvt44D7UVhzAE6RhCMz09rfsae3pWcEKnT/9pq0vIwxkCd+jvw6StsBVhka9XCwXZ2raYerhxdIDHMbHaKkiYYzGiIUyiflR6rkjvtHgyoaUhKeQJjM2oV7TUoEFAYGpnVOQxAPdjmtVtiWOWCLFRn8MHGfyYy4SRMP+Z46LOIac5RAWRnTlvGSMgnvQBV0XngeDpN8hD7zW19CsDi3v2V1ztyDwZPXpmKMZwTB4a5KdBW8ssQBcV9rDjiq/XdRwYEwiqFOqel7iXrIOn1LiruTBh4NvHbyOpITAj52JmNNQvaKE421G1OTrFMyIXU+FrOXChBQ8v90+TiLhJss8Sv3Qg+Ch4kjxTavTdMS02CCoGeMO+AqeOP11LwVANliPTBQLxLR++18fv4ugCwSUHYrnfz8fjwOejT1GShIj/0YGFsESKpjhNx2jO0EBr23gcMYLWdN7NQpcsSLKayrvneiz+WXdWXE2EZnoF+13XE5zD3pNIa+lRHdPHU2wxx9vw63i9aNPy51eyrktkIskQuuECtS/VypdSRFF53bS1rDdBMnMf5ndMuJvJsk1UxtkFoxtQ== [email protected]
- sudo: ['ALL=(ALL) NOPASSWD:ALL']
- groups: [root,sudo,staff]
- shell: /bin/bash
- disable_root: false
- network:
- version: 1
- config:
- - type: physical
- name: eth0
- subnets:
- - type: dhcp
- runcmd:
- - pkill snapd
- - systemctl stop unattended-upgrades
- - systemctl stop systemd-remount-fs
- - system reset-failed
- - passwd -d root
- - passwd -d yogan
- - echo "debconf debconf/priority select low" | sudo debconf-set-selections
- - DEBIAN_FRONTEND=noninteractive dpkg-reconfigure debconf
- - DEBIAN_FRONTEND=noninteractive apt-get update -y
- - DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y
- - DEBIAN_FRONTEND=noninteractive apt-get autoremove -y
- - DEBIAN_FRONTEND=noninteractive apt-get autoclean -y
- - rm -rf /root/.bashrc /root/.gnupg /root/.profile /root/.ssh/
- - cp -rfp /home/yogan/Downloads/.ssh /root/.ssh
- - chown -R root:root /root/.ssh
- - cp /home/yogan/Downloads/.bashrc /root/.bashrc
- - cp /home/yogan/Downloads/.bashrc /home/yogan/.bashrc
- - cp /home/yogan/Downloads/.profile /root/.bash_profile
- - cp /home/yogan/Downloads/.profile /home/yogan/.bash_profile
- - cp /home/yogan/Downloads/.profile /root/.profile
- - cp /home/yogan/Downloads/.profile /home/yogan/.profile
- - chown -R yogan:yogan /home/yogan
- - 'sed -i "s/; enable-shm = yes/enable-shm = no/g" /etc/pulse/client.conf'
- - 'echo export PULSE_SERVER=unix:/tmp/.pulse-native | tee --append /home/yogan/.profile'
- - 'sed -i "s/; enable-shm = yes/enable-shm = no/g" /etc/pulse/client.conf'
- timezone: Africa/Johannesburg
- packages:
- - man
- - manpages
- - hello
- - locales
- - less
- - vim
- - nano
- - jq
- - uuid
- - bash-completion
- - sudo
- - rsync
- - bridge-utils
- - net-tools
- - vlan
- - ncurses-term
- - iputils-arping
- - iputils-ping
- - iputils-tracepath
- - traceroute
- - mtr-tiny
- - tcpdump
- - dnsutils
- - ssh-import-id
- - openssh-server
- - openssh-client
- - software-properties-common
- - x11-apps
- - mesa-utils
- - pulseaudio
- power_state:
- delay: 'now'
- mode: reboot
- timeout: 10
- condition: True
- final_message: "The system is finally up! Enjoy!"
- write_files:
- - path: /etc/ssh/sshd_config
- content: |
- Port 22
- AddressFamily any
- SyslogFacility AUTH
- LogLevel INFO
- PermitRootLogin yes
- PubkeyAuthentication yes
- PasswordAuthentication yes
- ChallengeResponseAuthentication no
- GSSAPIAuthentication no
- HostbasedAuthentication no
- PermitEmptyPasswords no
- UsePAM yes
- IgnoreUserKnownHosts yes
- IgnoreRhosts yes
- X11Forwarding yes
- X11DisplayOffset 10
- X11UseLocalhost yes
- PermitTTY yes
- PrintMotd no
- TCPKeepAlive yes
- PermitTunnel yes
- ClientAliveInterval 5
- Banner none
- AcceptEnv LANG LC_* EDITOR PAGER SYSTEMD_EDITOR
- Subsystem sftp /usr/lib/openssh/sftp-server
- - path: /etc/ssh/ssh_config
- content: |
- Host *
- ForwardAgent no
- ForwardX11 yes
- PasswordAuthentication yes
- CheckHostIP no
- AddressFamily any
- SendEnv LANG LC_* EDITOR PAGER
- StrictHostKeyChecking no
- HashKnownHosts yes
- ServerAliveInterval 5
- - path: /etc/sudoers
- content: |
- Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
- Defaults env_keep += "HOME EDITOR SYSTEMD_EDITOR PAGER"
- Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
- Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- Defaults logfile=/var/log/sudo.log,loglinelen=0
- Defaults !syslog, !pam_session
- root ALL=(ALL) NOPASSWD: ALL
- %wheel ALL=(ALL) NOPASSWD: ALL
- %sudo ALL=(ALL) NOPASSWD: ALL
- yogan ALL=(ALL) NOPASSWD: ALL
- description: default
- devices:
- lxdbr0:
- nictype: bridged
- parent: lxdbr0
- type: nic
- Downloadsdir:
- path: /home/yogan/Downloads
- source: /home/yogan/Downloads
- type: disk
- Sourcedir:
- path: /home/yogan/sources
- source: /home/yogan/MEGA/sources
- type: disk
- root:
- path: /
- pool: default
- type: disk
- PASocket1:
- bind: container
- connect: unix:/run/user/1000/pulse/native
- listen: unix:/home/yogan/pulse-native
- security.gid: "1000"
- security.uid: "1000"
- uid: "1000"
- gid: "1000"
- mode: "0777"
- type: proxy
- X0:
- bind: container
- connect: unix:@/tmp/.X11-unix/X0
- listen: unix:@/tmp/.X11-unix/X0
- security.gid: "1000"
- security.uid: "1000"
- type: proxy
- mygpu:
- type: gpu
- name: default
- used_by: []
Advertisement
Add Comment
Please, Sign In to add comment