feat: add consul server profile

- install/configure consul
- install/configure dnsmasq as dns proxy for consul
- add unkin yumrepo definition as source for consul
- update datavol to ensure the /data volume is mounted
This commit is contained in:
2024-02-10 23:50:13 +11:00
parent 6b11ea09c7
commit 8cb6b68b53
12 changed files with 191 additions and 1 deletions
+2 -1
View File
@@ -11,6 +11,7 @@
#
class profiles::base::datavol (
Enum['present', 'absent'] $ensure = 'present',
Enum['present', 'absent', 'mounted'] $mountstate = 'mounted',
Enum['ext2', 'ext3', 'ext4', 'xfs', 'btrfs'] $fstype = 'xfs',
String $vg = 'datavg',
String $pv = '/dev/vdb',
@@ -63,7 +64,7 @@ class profiles::base::datavol (
# Ensure the logical volume is mounted at the desired location
mount { $mount:
ensure => $ensure,
ensure => $mountstate,
device => "/dev/${vg}/${lv}",
fstype => $fstype,
options => $mount_options.join(','),