Skip to content

Commit

Permalink
Fixed up a few errors with Raspberry Pi OS 12 Bookworm.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Mar 6, 2024
1 parent 29062a8 commit d757569
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
18 changes: 11 additions & 7 deletions example.config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
---
ipv4_subnet_prefix: "10.1.1"
active_internet_interface: "wlan0"
reverse_tunnel_enable: false
reverse_tunnel_vps_username: my-vps-username
reverse_tunnel_vps_hostname: my-vps-hostname

# Cluster storage options.
storage_type: filesystem # options: 'filesystem', 'zfs'
storage_zfs_pool_name: zfsdata
#storage_nfs_dir: '{{ storage_zfs_pool_name }}' # Use this for 'zfs'

Check warning on line 5 in example.config.yml

View workflow job for this annotation

GitHub Actions / Lint

5:2 [comments] missing starting space in comment
storage_nfs_dir: "srv" # Use this for 'filesystem'
storage_nfs_share_name: nfsshare

drupal_image: drupal:9.3-apache
# Drupal installation options.
drupal_image: drupal:10.2-apache
drupal_hash_salt: OTk4MTYzYWI4N2E2MGIxNjlmYmQ2MTA4
drupal_trusted_host_patterns: '^.+$'
drupal_database_password: 'drupal'
drupal_base_web_path: '/var/www/html/sites/default/'
drupal_config_sync_directory: 'sites/default/files/config_OTk4MTYzY'
drupal_extra_settings_php: ''

# These networking variables are only necessary if using optional static and
# remote networking features in the `tasks/networking` playbooks.
ipv4_subnet_prefix: "10.1.1"
active_internet_interface: "wlan0"
reverse_tunnel_enable: false
reverse_tunnel_vps_username: my-vps-username
reverse_tunnel_vps_hostname: my-vps-hostname
22 changes: 12 additions & 10 deletions example.hosts.ini
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
# The 'ip_host_octet' is used only when configuring static networking using the
# playbooks inside 'tasks/networking'.
[control_plane]
node1.local ip_host_octet=1

# Uncomment below when working on cluster through VPS tunnel host.
#[control_plane:vars]
#ansible_port='2222'
#ansible_user='pi'
#ansible_host='my-vps-host-or-ip'

[nodes]
node2.local ip_host_octet=2
node3.local ip_host_octet=3
node4.local ip_host_octet=4

# Uncomment below when working on cluster through VPS tunnel host.
#[nodes:vars]
#ansible_ssh_common_args='-o ProxyCommand="ssh -p 2222 -W %h:%p -q pi@my-vps-host-or-ip"'

# The node to be used for shared cluster storage.
[storage]
node3.local

[cluster:children]
control_plane
nodes

# Uncomment below when working on cluster through VPS tunnel host.
#[control_plane:vars]
#ansible_port='2222'
#ansible_user='pi'
#ansible_host='my-vps-host-or-ip'

#[nodes:vars]
#ansible_ssh_common_args='-o ProxyCommand="ssh -p 2222 -W %h:%p -q pi@my-vps-host-or-ip"'
17 changes: 12 additions & 5 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
- name: reboot-pi
ansible.builtin.reboot:

- name: restart nfs
ansible.builtin.service:
name: nfs-server
state: restarted

vars_files:
- config.yml

Expand Down Expand Up @@ -51,6 +46,12 @@
gather_facts: false
become: true

handlers:
- name: restart nfs
ansible.builtin.service:
name: nfs-server
state: restarted

vars_files:
- config.yml

Expand Down Expand Up @@ -95,6 +96,12 @@
state: present
become: true

- name: Ignore PEP 668 because it's silly.
ansible.builtin.file:
path: /usr/lib/python3.11/EXTERNALLY-MANAGED
state: absent
become: true

- name: Ensure required Python libraries are installed.
ansible.builtin.pip:
name:
Expand Down

0 comments on commit d757569

Please sign in to comment.