Skip to content
Merged
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
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
puppet-code (0.1.0-1build276) noble; urgency=medium

* commit event. see changes history in git log

-- root <packager@infrahouse.com> Sun, 18 Jan 2026 18:11:05 +0000

puppet-code (0.1.0-1build275) noble; urgency=medium

* commit event. see changes history in git log
Expand Down
3 changes: 3 additions & 0 deletions environments/development/data/percona_server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
classes:
- role::percona_server
6 changes: 6 additions & 0 deletions environments/development/modules/profile/manifests/percona.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @summary: Installs Percona Server and related components
class profile::percona () {

include 'profile::percona::repo'

}
41 changes: 41 additions & 0 deletions environments/development/modules/profile/manifests/percona/repo.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# @summary: Installs Percona repository using percona-release package.
class profile::percona::repo () {
$release_package_url = 'https://repo.percona.com/apt/percona-release_latest.generic_all.deb'
$release_package_path = '/var/tmp/percona-release_latest.generic_all.deb'

package { ['gnupg2', 'curl', 'lsb-release']:
ensure => 'installed',
}

exec { 'download-percona-release':
path => '/usr/bin',
command => "curl -o ${release_package_path} ${release_package_url}",
creates => $release_package_path,
require => Package['curl'],
}

exec { 'install-percona-release':
path => '/usr/bin:/usr/sbin:/sbin:/bin',
command => "dpkg -i ${release_package_path}",
unless => 'dpkg -l percona-release',
require => [
Exec['download-percona-release'],
Package['gnupg2'],
Package['lsb-release'],
],
notify => Exec['percona-release-setup'],
}

exec { 'percona-release-setup':
path => '/usr/bin:/usr/sbin:/sbin:/bin',
command => 'percona-release setup ps80 -y',
refreshonly => true,
notify => Exec['update-percona-repo'],
}

exec { 'update-percona-repo':
path => '/usr/bin',
command => 'apt-get update',
refreshonly => true,
}
}
7 changes: 7 additions & 0 deletions modules/role/manifests/percona_server.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @summary: Puppet role for a Percona Server node
class role::percona_server () {

include 'profile::base'
include 'profile::percona'

}