Updated to use cloud-init images
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#cloud-config
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
all-en:
|
||||
match:
|
||||
name: {{ iface }}
|
||||
dhcp4: false
|
||||
addresses:
|
||||
- {{ ip_addr }}
|
||||
routes:
|
||||
- to: default
|
||||
via: {{ gateway }}
|
||||
nameservers:
|
||||
addresses:
|
||||
- {{ dns_server_1 }}
|
||||
- {{ dns_server_2 }}
|
||||
@@ -0,0 +1,23 @@
|
||||
#cloud-config
|
||||
users:
|
||||
- name: {{ ci_user_name }}
|
||||
shell: /bin/bash
|
||||
groups: [sudo]
|
||||
ssh-authorized-keys:
|
||||
- "{{ ssh_public_key }}"
|
||||
|
||||
chpasswd:
|
||||
list: |
|
||||
{{ ci_user_name }}:{{ ci_user_passwd_hash}}
|
||||
expire: False
|
||||
|
||||
ssh_pwauth: True
|
||||
disable_root: True
|
||||
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- htop
|
||||
- nftables
|
||||
- vim
|
||||
- git
|
||||
Reference in New Issue
Block a user