Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ actually attach & mount a volume you have to use the defined type
* Type: `String`
* Default: `'/etc/systemd/system'`

##### `packages`

* list of packages to install
* Type: `Array`
* Default: `[ 'curl', 'gawk', 'util-linux', 'awscli', 'xfsprogs' ]`

#### Examples

##### Declaring the base class
Expand Down
7 changes: 4 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
# @param bin_dir path to the binary directory for helper scripts
# @param systemd_dir path to the directory where systemd units should be placed
class aws_ebs(
String $systemd_dir = '/etc/systemd/system',
String $bin_dir = '/opt/bin',
String $systemd_dir = '/etc/systemd/system',
String $bin_dir = '/opt/bin',
Array[String] $packages = ['curl', 'gawk', 'util-linux', 'awscli', 'xfsprogs'],
){

$path = defined('$::path') ? {
Expand All @@ -27,7 +28,7 @@
mode => '0755',
})

ensure_resource('package', ['curl', 'gawk', 'util-linux', 'awscli', 'xfsprogs'],{
ensure_resource('package', $packages,{
ensure => present
})

Expand Down
1 change: 1 addition & 0 deletions manifests/mount.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
notify => Exec[$systemd_reload],
} ~> service { $mount_service_name:
ensure => running,
enable => true,
require => Exec[$systemd_reload],
}
}