Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Chassis for Noble Numbat #1072

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "puppet/modules/staging"]
path = puppet/modules/staging
url = https://github.com/voxpupuli/puppet-staging.git
[submodule "puppet/modules/archive"]
path = puppet/modules/archive
url = https://github.com/voxpupuli/puppet-archive
16 changes: 1 addition & 15 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,7 @@ Vagrant.configure("2") do |config|
config.vm.box = CONF['box']
else
# We <3 Ubuntu LTS
config.vm.box = "bento/ubuntu-22.04"
end

# The Parallels Provider uses a different naming scheme.
config.vm.provider :parallels do |_v, override|
# Vagrant currently runs under Rosetta on Apple Silicon devices. As a result,
# this seems to be the most reliable way to detect whether or not we're
# running under ARM64.
if Etc.uname[:version].include? 'ARM64'
if CONF['_mode'] == "normal"
override.vm.box = 'chassis/chassis-arm64'
else
override.vm.box = 'bento/ubuntu-22.04-arm64'
end
end
config.vm.box = "bento/ubuntu-24.04"
end

# Enable SSH forwarding
Expand Down
2 changes: 1 addition & 1 deletion puppet/manifests/development.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}

# Allow MySQL options to be added or overridden.
$mysql_overrides = merge( $mysql_defaults, $config['mysql'] )
$mysql_overrides = stdlib::merge( $mysql_defaults, $config['mysql'] )

# Allow MySQL package name to be overridden so we can easily support MariaDB.
if $config['mysql'] and $config['mysql']['package_name'] != undef {
Expand Down
2 changes: 1 addition & 1 deletion puppet/modules/apt
Submodule apt updated 120 files
1 change: 1 addition & 0 deletions puppet/modules/archive
Submodule archive added at a072ac
48 changes: 24 additions & 24 deletions puppet/modules/chassis/manifests/hosts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
) {

# Jammy Jellyfish configurations.
case $::lsbdistcodename {
'jammy': {
case $facts['os']['distro']['codename'] {
'jammy', 'noble' : {
# Jammy Jellyfish has access to the python3-avahi package so install it.
package { 'python3-avahi':
ensure => latest,
Expand Down Expand Up @@ -38,19 +38,19 @@
ensure => latest
}

ensure_packages( ['mdns-publisher'], {
ensure => present,
provider => 'pip3',
require => [ Package['python3-pip'], Package['libdbus-glib-1-dev'] ],
})
# stdlib::ensure_packages( ['mdns-publisher'], {
# ensure => present,
# provider => 'pip3',
# require => [ Package['python3-pip'], Package['libdbus-glib-1-dev'] ],
# })

file { '/lib/systemd/system/chassis-hosts.service':
ensure => 'file',
mode => '0644',
content => template('chassis/chassis-hosts.service.erb'),
notify => Service['chassis-hosts'],
require => Package['mdns-publisher'],
}
# file { '/lib/systemd/system/chassis-hosts.service':
# ensure => 'file',
# mode => '0644',
# content => template('chassis/chassis-hosts.service.erb'),
# notify => Service['chassis-hosts'],
# require => Package['mdns-publisher'],
# }

if ( $subdomains ) {
file { '/vagrant/local-config-hosts.php':
Expand All @@ -63,15 +63,15 @@
}
}

service { 'chassis-hosts':
ensure => running,
enable => true,
require => [
Package[ 'avahi-daemon' ],
Package[ 'python3-avahi' ],
File[ '/lib/systemd/system/chassis-hosts.service' ],
Exec['restart-avahi']
],
}
# service { 'chassis-hosts':
# ensure => running,
# enable => true,
# require => [
# Package[ 'avahi-daemon' ],
# Package[ 'python3-avahi' ],
# File[ '/lib/systemd/system/chassis-hosts.service' ],
# Exec['restart-avahi']
# ],
# }

}
8 changes: 0 additions & 8 deletions puppet/modules/chassis/manifests/php.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
],
}

apt::ppa { 'ppa:ondrej/php-qa':
require => [
Package[$apt::ppa_package],
Class['apt'],
],
}

if $version =~ /^(\d+)\.(\d+)$/ {
$package_version = "${version}.*"
$short_ver = $version
Expand Down Expand Up @@ -96,7 +89,6 @@
require => [
Apt::Pin[$core_packages],
Apt::Ppa['ppa:ondrej/php'],
Apt::Ppa['ppa:ondrej/php-qa'],
Class['apt::update'],
Chassis::Remove_php_version[$php_versions_to_remove]
],
Expand Down
7 changes: 1 addition & 6 deletions puppet/modules/chassis/manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@
}

wp::site { $wpdir:
url => "http://${name}/",
sitename => $sitename,
require => Mysql::Db[$database],
admin_user => $admin_user,
admin_email => $admin_email,
admin_password => $admin_password,
require => Mysql::Db[$database]
}
}
2 changes: 1 addition & 1 deletion puppet/modules/mysql
Submodule mysql updated 179 files
2 changes: 1 addition & 1 deletion puppet/modules/stdlib
Submodule stdlib updated 724 files
2 changes: 1 addition & 1 deletion puppet/modules/wp
Submodule wp updated 55 files
+3 −0 .fixtures.yml
+3 −0 .gitignore
+27 −0 .travis.yml
+15 −0 Gemfile
+165 −0 LICENSE
+0 −8 Modulefile
+2 −109 README.md
+2 −0 Rakefile
+60 −0 docs/.vuepress/config.js
+8 −0 docs/README.md
+1 −0 docs/classes/README.md
+60 −0 docs/classes/cap.md
+4 −0 docs/classes/cli.md
+60 −0 docs/classes/command.md
+57 −0 docs/classes/comment.md
+109 −0 docs/classes/config.md
+122 −0 docs/classes/core.md
+86 −0 docs/classes/option.md
+20 −0 docs/classes/params.md
+154 −0 docs/classes/plugin.md
+43 −0 docs/classes/rewrite.md
+61 −0 docs/classes/role.md
+127 −0 docs/classes/theme.md
+50 −0 docs/classes/user.md
+33 −0 docs/docs/README.md
+44 −0 docs/docs/puppet-forge.md
+17 −0 docs/installation/README.md
+11 −0 docs/licence/README.md
+30 −0 manifests/cap.pp
+38 −26 manifests/cli.pp
+12 −7 manifests/command.pp
+35 −0 manifests/comment.pp
+39 −0 manifests/config.pp
+45 −0 manifests/core.pp
+22 −0 manifests/create_subsite.pp
+8 −1 manifests/init.pp
+16 −9 manifests/option.pp
+36 −0 manifests/option/patch.pp
+19 −3 manifests/params.pp
+37 −42 manifests/plugin.pp
+7 −4 manifests/rewrite.pp
+38 −0 manifests/role.pp
+7 −38 manifests/site.pp
+55 −7 manifests/theme.pp
+58 −0 manifests/user.pp
+34 −0 metadata.json
+24,925 −0 package-lock.json
+9 −0 package.json
+77 −0 spec/defines/cap_spec.rb
+64 −0 spec/defines/command_spec.rb
+0 −0 spec/fixtures/manifests/site.pp
+11 −0 spec/spec_helper.rb
+3 −0 templates/wp.bat.erb
+3 −0 templates/wp.sh.erb
+8,057 −0 yarn.lock
3 changes: 3 additions & 0 deletions puppet/preprovision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ if [[ ! -f /etc/chassis-updated ]]; then
# Install puppet
sudo apt-get -q -y install puppet

# Create directory for MySql
sudo mkdir /var/log/mysql

touch /etc/chassis-updated
fi

Expand Down