linux:cloud-init:from_scratch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
cloud-init:from_scratch [2019/07/18 07:43] – external edit 127.0.0.1 | linux:cloud-init:from_scratch [2022/02/11 11:12] – ↷ Links adapted because of a move operation dodger | ||
---|---|---|---|
Line 44: | Line 44: | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
Latest YAML script version will be on:\\ | Latest YAML script version will be on:\\ | ||
- | [[cloud-init: | + | [[linux:cloud-init: |
</ | </ | ||
Line 70: | Line 70: | ||
====== Examples ====== | ====== Examples ====== | ||
- | <file yaml cloud-init.yaml> | + | [[linux:cloud-init:standard-cloudinit-yaml|Standard cloud-init script]] |
- | # | + | |
- | package_upgrade: true | + | |
- | preserve_hostname: | + | |
- | fqdn: bvclb-psql-002.ciberterminal.net | + | |
- | hostname: bvclb-psql-002 | + | |
- | manage_resolv_conf: | + | |
- | network: | + | |
- | config: disabled | + | |
- | + | ||
- | bootcmd: | + | |
- | - echo DEVICE=eth0 > / | + | |
- | - echo TYPE=Ethernet >> / | + | |
- | - echo ONBOOT=yes >> / | + | |
- | - echo BOOTPROTO=none >> / | + | |
- | - echo IPADDR=10.50.84.52 >> / | + | |
- | - echo PREFIX=22 >> / | + | |
- | - echo GATEWAY=10.50.84.1 >> / | + | |
- | - echo DNS1=10.40.3.101 >> / | + | |
- | - echo DNS2=10.40.3.102 >> / | + | |
- | - ifdown eth0 | + | |
- | - ifup eth0 | + | |
- | + | ||
- | + | ||
- | users: | + | |
- | - name: bofher | + | |
- | sudo: [' | + | |
- | ssh-authorized-keys: | + | |
- | - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMyKlWiO3YkoIc2ZfuLi+nEojn3mLcGOETB54c1Ih3jC/ | + | |
- | - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA/ | + | |
- | - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzA69Atu99/ | + | |
- | lock-passwd: | + | |
- | passwd: $6$RvKfWhor$ve1U0Ni.cwS4wy/ | + | |
- | + | ||
- | packages: | + | |
- | - bash-completion | + | |
- | - vim | + | |
- | - tmux | + | |
- | - strace | + | |
- | - lsof | + | |
- | - mlocate | + | |
- | - git | + | |
- | - subversion | + | |
- | - nmap | + | |
- | - tcpdump | + | |
- | - jq | + | |
- | - nc | + | |
- | - telnet | + | |
- | - man | + | |
- | - yum-utils | + | |
- | - unzip | + | |
- | - pigz | + | |
- | - pbzip2 | + | |
- | - ntpdate | + | |
- | - rlwrap | + | |
- | - expectk | + | |
- | - psmisc | + | |
- | - lvm2 | + | |
- | - htop | + | |
- | - elinks | + | |
- | - wget | + | |
- | - dmidecode | + | |
- | - python-setuptools | + | |
- | - git | + | |
- | - sl | + | |
- | - cyrus-sasl-devel | + | |
- | - cyrus-sasl-gs2 | + | |
- | - cyrus-sasl-gssapi | + | |
- | - cyrus-sasl-ldap | + | |
- | - cyrus-sasl-ntlm | + | |
- | - cyrus-sasl-plain | + | |
- | - cyrus-sasl-scram | + | |
- | - cyrus-sasl-sql | + | |
- | - cyrus-sasl-sql | + | |
- | - krb5-workstation | + | |
- | - samba-common-tools | + | |
- | - sssd-ad | + | |
- | - salt-minion | + | |
- | + | ||
- | runcmd: | + | |
- | - [ yum, -y, groupinstall, | + | |
- | - [ systemctl, stop, firewalld ] | + | |
- | - [ systemctl, disable, firewalld ] | + | |
- | - [ systemctl, enable, salt-minion ] | + | |
- | - [ sed, -i, " | + | |
- | - [ sed, -i, " | + | |
- | - [ wall, " | + | |
- | - [ shutdown, -r, -t, 10 ] | + | |
- | + | ||
- | </ | + | |
- | + |
linux/cloud-init/from_scratch.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1