-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from andskli/develop
Version 0.1.1
- Loading branch information
Showing
11 changed files
with
283 additions
and
202 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,3 +1,4 @@ | ||
.idea/ | ||
.bundle/ | ||
Gemfile.lock | ||
pkg/ |
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,24 +1,51 @@ | ||
--- | ||
language: ruby | ||
bundler_args: --without development | ||
sudo: false | ||
|
||
rvm: | ||
- 1.8.7 | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.1.0 | ||
- ruby-head | ||
|
||
script: | ||
- "bundle install" | ||
- "bundle exec rake validate" | ||
- "bundle exec rake lint" | ||
- "bundle exec rake spec SPEC_OPTS='--format documentation'" | ||
- "SPEC_OPTS='--format documentation' bundle exec rake spec" | ||
|
||
env: | ||
- PUPPET_VERSION=3.3 | ||
- PUPPET_VERSION=3.7.2 | ||
matrix: | ||
- PUPPET_GEM_VERSION="~> 3.1.0" | ||
- PUPPET_GEM_VERSION="~> 3.2.0" | ||
- PUPPET_GEM_VERSION="~> 3.3.0" | ||
- PUPPET_GEM_VERSION="~> 3.4.0" | ||
- PUPPET_GEM_VERSION="~> 3.5.0" | ||
- PUPPET_GEM_VERSION="~> 3.6.0" | ||
- PUPPET_GEM_VERSION="~> 3.7.0" | ||
- PUPPET_GEM_VERSION="~> 3.8.0" | ||
- PUPPET_GEM_VERSION="~> 3" | ||
- PUPPET_GEM_VERSION="~> 4.0.0" | ||
- PUPPET_GEM_VERSION="~> 4.1.0" | ||
- PUPPET_GEM_VERSION="~> 4.2.0" | ||
- PUPPET_GEM_VERSION="~> 4.3.0" | ||
- PUPPET_GEM_VERSION="~> 4" | ||
- PUPPET_GEM_VERSION="~> 4" | ||
|
||
matrix: | ||
# allow_failures: | ||
# - rvm: ruby-head | ||
fast_finish: true | ||
exclude: | ||
- rvm: ruby-head | ||
gemfile: Gemfile | ||
# build only these | ||
branches: | ||
only: | ||
- master | ||
|
||
- rvm: 2.0.0 | ||
env: PUPPET_GEM_VERSION="~> 3.1.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.1.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.2.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.3.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_GEM_VERSION="~> 3.4.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_GE3M_VERSION="~> 4" |
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,41 @@ | ||
class netbackup::client::config ( | ||
$clientname = $netbackup::client::clientname, | ||
$masterserver = $netbackup::client::masterserver, | ||
$mediaservers = $netbackup::client::mediaservers, | ||
$service_enabled = $netbackup::client::service_enabled, | ||
$excludes = $netbackup::client::excludes, | ||
){ | ||
|
||
file { 'bp.conf': | ||
ensure => file, | ||
path => '/usr/openv/netbackup/bp.conf', | ||
owner => 'root', | ||
group => 'root', | ||
mode => '0644', | ||
content => template('netbackup/bp.conf.erb'), | ||
} | ||
|
||
# Only define netbackup init service if netbackup_version fact is set | ||
if $::netbackup_version != undef { | ||
service { 'netbackup-client': | ||
ensure => $service_enabled, | ||
name => 'netbackup', | ||
hasrestart => false, | ||
hasstatus => false, | ||
pattern => 'bpcd', | ||
provider => init, | ||
require => File['bp.conf'] | ||
} | ||
} | ||
|
||
if $excludes != undef { | ||
file { 'exclude_list': | ||
ensure => file, | ||
path => '/usr/openv/netbackup/exclude_list', | ||
owner => 'root', | ||
group => 'root', | ||
mode => '0644', | ||
content => template('netbackup/exclude_list.erb'), | ||
} | ||
} | ||
} |
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
Oops, something went wrong.