-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thbe
committed
Aug 11, 2016
1 parent
14d0225
commit 453573d
Showing
17 changed files
with
199 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
fixtures: | ||
forge_modules: | ||
stdlib: "puppetlabs/stdlib" | ||
mysql: "puppetlabs/mysql" | ||
staging: "nanliu/staging" | ||
stdlib: "puppetlabs-stdlib" | ||
mysql: "puppetlabs-mysql" | ||
staging: "nanliu-staging" | ||
symlinks: | ||
bareos: "#{source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Class: bareos::config::webui | ||
# | ||
# This module manages bareos webui | ||
# | ||
# Parameters: This module has no parameters | ||
# | ||
# Actions: This module has no actions | ||
# | ||
# Requires: This module has no requirements | ||
# | ||
# Sample Usage: | ||
# | ||
class bareos::config::webui { | ||
|
||
# Webui configuration | ||
file { | ||
$bareos::params::config_confd_webui_consoles: | ||
ensure => file, | ||
mode => '0644', | ||
content => template($bareos::params::config_confd_webui_consoles_template), | ||
notify => Service[$bareos::params::service_webui], | ||
require => Package[$bareos::params::package_webui]; | ||
|
||
$bareos::params::config_confd_webui_profiles: | ||
ensure => file, | ||
mode => '0644', | ||
content => template($bareos::params::config_confd_webui_profiles_template), | ||
notify => Service[$bareos::params::service_webui], | ||
require => Package[$bareos::params::package_webui]; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Class: bareos::install::webui | ||
# | ||
# This class contain the packages for bareos webui installation | ||
# | ||
# Parameters: This module has no parameters | ||
# | ||
# Actions: This module has no actions | ||
# | ||
# Requires: This module has no requirements | ||
# | ||
# Sample Usage: include bareos::install::webui | ||
# | ||
class bareos::install::webui { | ||
|
||
# Webui packages | ||
package { $bareos::params::package_webui: ensure => installed; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,8 @@ | |
if $bareos::type_dir { | ||
include bareos::run::director | ||
} | ||
|
||
if $bareos::type_webui { | ||
include bareos::run::webui | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Class: bareos::run::webui | ||
# | ||
# This module manages bareos webui | ||
# | ||
# Parameters: This module has no parameters | ||
# | ||
# Actions: This module has no actions | ||
# | ||
# Requires: This module has no requirements | ||
# | ||
# Sample Usage: | ||
# | ||
class bareos::run::webui { | ||
|
||
# bareos webui service configuration | ||
service { | ||
$bareos::params::service_webui: | ||
ensure => 'running', | ||
enable => true, | ||
require => Package[$bareos::params::package_webui]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### /etc/bareos/bareos-dir.d/webui-consoles.conf | ||
# | ||
# Preparations: | ||
# | ||
# include this configuration file in bareos-dir.conf by | ||
# @/etc/bareos/bareos-dir.d/webui-consoles.conf | ||
# | ||
# managed by Puppet, local changes will be overwritten | ||
# | ||
|
||
# | ||
# Restricted console used by bareos-webui | ||
# | ||
<% scope.lookupvar('bareos::webui_user').each do |user, password| -%> | ||
Console { | ||
Name = <%= user %> | ||
Password = <%= password %> | ||
Profile = webui | ||
} | ||
<% end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### /etc/bareos/bareos-dir.d/webui-profiles.conf | ||
# | ||
# Preparations: | ||
# | ||
# include this configuration file in bareos-dir.conf by | ||
# @/etc/bareos/bareos-dir.d/webui-profiles.conf | ||
# | ||
# managed by Puppet, local changes will be overwritten | ||
# | ||
|
||
# | ||
# bareos-webui default profile resource | ||
# | ||
Profile { | ||
Name = webui | ||
CommandACL = status, messages, show, version, run, rerun, cancel, .api, .bvfs_*, list, llist, use, restore, .jobs, .filesets, .clients | ||
Job ACL = *all* | ||
Schedule ACL = *all* | ||
Catalog ACL = *all* | ||
Pool ACL = *all* | ||
Storage ACL = *all* | ||
Client ACL = *all* | ||
FileSet ACL = *all* | ||
Where ACL = *all* | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### /etc/bareos/bconsole.conf | ||
# | ||
# Bareos User Agent (or Console) Configuration File | ||
# | ||
# managed by Puppet, local changes will be overwritten | ||
# | ||
|
||
Director { | ||
Name = BackupServerDirector | ||
DIRport = 9101 | ||
address = <%= @fqdn %> | ||
Password = <%= scope.lookupvar('bareos::client_password') %> | ||
} |