honestly its been months, i found unstaged changes and forgot
This commit is contained in:
1 parent
b5d1ffda95
commit
ef8d5645e3
55 files changed
+1554
-180
No files matched your search
@@ -4,6 +4,9 @@ fqdn: {{ cloud_init_fqdn | default(nbops_fqdn) }}
|
||||
manage_etc_hosts: true
|
||||
timezone: {{ cloud_init_timezone | default(nbops_timezone) }}
|
||||
locale: {{ cloud_init_locale | default(nbops_locale) }}
|
||||
{% set serial_console_enabled = cloud_init_serial_console_enabled | default(true) %}
|
||||
{% set serial_console_tty = cloud_init_serial_console_tty | default('ttyS0') %}
|
||||
{% set serial_console_term = cloud_init_serial_console_term | default('xterm-256color') %}
|
||||
|
||||
users:
|
||||
- default
|
||||
@@ -72,6 +75,14 @@ write_files:
|
||||
net.ipv6.conf.all.forwarding = 1
|
||||
fs.inotify.max_user_watches = 1048576
|
||||
fs.inotify.max_user_instances = 1024
|
||||
{% if serial_console_enabled | bool %}
|
||||
- path: /etc/systemd/system/serial-getty@{{ serial_console_tty }}.service.d/10-nbops-xterm.conf
|
||||
owner: root:root
|
||||
permissions: "0644"
|
||||
content: |
|
||||
[Service]
|
||||
Environment=TERM={{ serial_console_term }}
|
||||
{% endif %}
|
||||
|
||||
runcmd:
|
||||
- install -m 0755 -d /etc/apt/keyrings
|
||||
@@ -87,9 +98,12 @@ runcmd:
|
||||
- ufw allow {{ cloud_init_ssh_port | default(nbops_ssh_port) }}/tcp
|
||||
- ufw --force enable
|
||||
- systemctl enable --now chrony qemu-guest-agent docker unattended-upgrades
|
||||
{% if serial_console_enabled | bool %}
|
||||
- systemctl daemon-reload
|
||||
- systemctl enable --now serial-getty@{{ serial_console_tty }}.service
|
||||
{% endif %}
|
||||
- sysctl --system
|
||||
- ansible-galaxy collection install -r {{ cloud_init_repo_path | default('/opt/nbops-ansible') }}/requirements.yml || true
|
||||
- ansible-pull -U {{ cloud_init_repo_url }} -i localhost, -c local {{ cloud_init_playbook | default('playbooks/pull.yml') }} --accept-host-key
|
||||
|
||||
final_message: "nbops cloud-init bootstrap complete after $UPTIME seconds"
|
||||
|
||||
Reference in new issue
Block a user