Skip to content

Commit bcc63fc

Browse files
committed
[module] Support Puppet 6
1 parent c68d40b commit bcc63fc

8 files changed

Lines changed: 95 additions & 5 deletions

File tree

data/ArchLinux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
grub2::config_file: '/etc/default/grub'
3+
grub2::distributor: '$(lsb_release -i -r -s 2> /dev/null || echo Archlinux)'
4+
grub2::install_binary: '/usr/bin/grub-install'
5+
grub2::package_name:
6+
- 'grub'
7+
grub2::package_name_legacy: ~
8+
grub2::update_binary: '/usr/bin/grub-mkconfig -o /boot/grub2/grub.cfg'

data/Debian.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
grub2::config_file: '/etc/default/grub'
3+
grub2::distributor: '$(lsb_release -i -s 2> /dev/null || echo Debian)'
4+
grub2::install_binary: '/usr/sbin/grub-install'
5+
grub2::package_name:
6+
- 'grub-pc'
7+
- 'grub-common'
8+
grub2::package_name_legacy: 'grub-legacy'
9+
grub2::update_binary: '/usr/sbin/update-grub'

data/Gentoo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
grub2::config_file: '/etc/default/grub'
3+
grub2::distributor: 'Gentoo'
4+
grub2::install_binary: '/usr/sbin/grub2-install'
5+
grub2::package_name:
6+
- 'sys-boot/grub'
7+
grub2::package_name_legacy: ~
8+
grub2::update_binary: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg'

data/RedHat.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
grub2::config_file: '/etc/default/grub'
3+
grub2::distributor: "$(sed 's, release .*$,,g' /etc/system-release)"
4+
grub2::install_binary: '/usr/sbin/grub2-install'
5+
grub2::package_name:
6+
- 'grub2'
7+
- 'grub2-tools'
8+
grub2::package_name_legacy: ~
9+
grub2::update_binary: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg'

data/Suse.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
grub2::config_file: '/etc/default/grub'
3+
grub2::distributor: '$(lsb_release -i -r -s 2> /dev/null || echo SUSE)'
4+
grub2::install_binary: '/usr/sbin/grub2-install'
5+
grub2::package_name:
6+
- 'grub2'
7+
grub2::package_name_legacy: ~
8+
grub2::update_binary: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg'

data/common.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
grub2::background_image: ''
3+
grub2::badram: ''
4+
grub2::config_template: 'grub2/default_grub.erb'
5+
grub2::cmdline_linux: ''
6+
grub2::cmdline_linux_default: 'quiet'
7+
grub2::cmdline_linux_recovery: ''
8+
grub2::cmdline_xen: ''
9+
grub2::default_entry: '0'
10+
grub2::device_install: []
11+
grub2::disable_os_prober: false
12+
grub2::disable_recovery: false
13+
grub2::disable_submenu: false
14+
grub2::disable_uuid: false
15+
grub2::enable_cryptodisk: false
16+
grub2::enable_blscfg: false
17+
grub2::hidden_timeout: ~
18+
grub2::hidden_timeout_quiet: false
19+
grub2::install_grub: false
20+
grub2::remove_grub_legacy: false
21+
grub2::package_ensure: present
22+
grub2::password: false
23+
grub2::password_file: '/etc/grub.d/50_password'
24+
grub2::password_username: ''
25+
grub2::password_pbkdf2_hash: ''
26+
grub2::password_template: 'grub2/50_password.erb'
27+
grub2::preload_modules: ''
28+
grub2::recordfail_timeout: 5
29+
grub2::save_default: false
30+
grub2::serial_command: ''
31+
grub2::suse_btrfs_snapshot_booting: false
32+
grub2::terminal: ''
33+
grub2::timeout: 5
34+
grub2::tune: ''
35+
grub2::update_grub: true

hiera.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
version: 5
3+
4+
defaults:
5+
datadir: data
6+
data_hash: yaml_data
7+
8+
hierarchy:
9+
- name: "In module hierarchy"
10+
paths:
11+
- "%{facts.os.name}-%{facts.os.release.major}.yaml"
12+
- "%{facts.os.name}.yaml"
13+
- "%{facts.os.family}-%{facts.os.release.major}.yaml"
14+
- "%{facts.os.family}.yaml"
15+
- "common.yaml"

metadata.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "goldyfruit-grub2",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"author": "goldyfruit",
55
"summary": "Puppet module for managing GRUB2",
66
"license": "Apache-2.0",
@@ -39,7 +39,7 @@
3939
"requirements": [
4040
{
4141
"name": "puppet",
42-
"version_requirement": ">=4.0.0 <5.0.0"
42+
"version_requirement": ">=5.0.0 <7.0.0"
4343
}
4444
],
4545
"tags": [
@@ -51,7 +51,5 @@
5151
"mbr"
5252
],
5353
"description": "Puppet module for managing GRUB2",
54-
"pdk-version": "1.7.0",
55-
"template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git",
56-
"template-ref": "1.7.0-0-g57412ed"
54+
"pdk-version": "1.8.0"
5755
}

0 commit comments

Comments
 (0)