Skip to content

Commit

Permalink
✨ Ubuntu 24.04 support (#1519)
Browse files Browse the repository at this point in the history
* Update boxes to Ubuntu 24.04

* Update CHANGELOG [ci skip]

* build

* 🩹 Create /run/sshd directory to avoid error

* Update roles/sshd/tasks/main.yml

Co-authored-by: Scott Walkinshaw <[email protected]>

---------

Co-authored-by: Scott Walkinshaw <[email protected]>
  • Loading branch information
retlehs and swalkinshaw authored Jul 30, 2024
1 parent ab4226b commit b9eb66f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.x']
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- run: mkdir $HOME/.ssh
- name: Remove and cleanup mysql
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### HEAD
* Update boxes to Ubuntu 24.04 [#1519](https://github.com/roots/trellis/pull/1519)
* Update MariaDB to 10.11 [#1520](https://github.com/roots/trellis/pull/1520)

### 1.22.1: May 30th, 2024
* Fix Nginx apt-key is deprecated failure [#1518](https://github.com/roots/trellis/pull/1518)

Expand Down
9 changes: 1 addition & 8 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ trellis_config = Trellis::Config.new(root_path: ANSIBLE_PATH)
Vagrant.require_version vconfig.fetch('vagrant_require_version', '>= 2.1.0')

Vagrant.configure('2') do |config|
box = vconfig.fetch('vagrant_box')
box_auto_arch = vconfig.fetch('vagrant_box_auto_arch', true)

if box_auto_arch && !box.end_with?("-arm64") && apple_silicon?
box = "#{box}-arm64"
end

config.vm.box = box
config.vm.box = vconfig.fetch('vagrant_box')
config.vm.box_version = vconfig.fetch('vagrant_box_version')
config.ssh.forward_agent = true
config.vm.post_up_message = post_up_message
Expand Down
5 changes: 5 additions & 0 deletions roles/sshd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
label: "{{ item.key }}"
notify: restart ssh

- name: Create the /run/sshd directory
file:
path: /run/sshd
state: directory

- name: Create a secure sshd_config
template:
src: "{{ sshd_config }}"
Expand Down
5 changes: 2 additions & 3 deletions vagrant.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
vagrant_ip: '192.168.56.5'
vagrant_cpus: 1
vagrant_memory: 1024 # in MB
vagrant_box: 'bento/ubuntu-22.04'
vagrant_box: 'bento/ubuntu-24.04'
vagrant_box_version: '>= 0'
vagrant_box_auto_arch: true
vagrant_ansible_version: '2.10.7'
vagrant_skip_galaxy: false
vagrant_mount_type: 'nfs'
vagrant_nfs_udp: false
vagrant_require_version: '>= 2.1.0'
vagrant_require_version: '>= 2.4.0'

vagrant_install_plugins: true
vagrant_plugins:
Expand Down

0 comments on commit b9eb66f

Please sign in to comment.