- 
      
- 
        Save sly01/f9426b3b5097afbe1505f12c23fe03cc to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | [root@test-172-ct20 ~]# puppet agent -t | |
| Info: Using configured environment 'test' | |
| Info: Retrieving pluginfacts | |
| Info: Retrieving plugin | |
| Info: Loading facts | |
| Notice: /Stage[main]/Profile::Monitoring::Nagios/Tidy[tmp_nagios]: Tidying 0 files | |
| Info: Applying configuration version '1506083331' | |
| Notice: /Stage[main]/Profile::Netbackup::Files/File[/opt/openv7c]/ensure: current_value absent, should be directory (noop) | |
| Notice: /Stage[main]/Netbackup::Client::Install/File[install_netbackup_client.expect]/ensure: current_value absent, should be file (noop) | |
| Notice: /Stage[main]/Netbackup::Client::Install/Package[expect]/ensure: current_value purged, should be present (noop) | |
| Notice: /Stage[main]/Netbackup::Client::Install/Exec[run-netbackup-install]/returns: current_value notrun, should be 0 (noop) | |
| Notice: Class[Netbackup::Client::Install]: Would have triggered 'refresh' from 3 events | |
| Notice: /Stage[main]/Netbackup::Client::Config/File[bp.conf]/ensure: current_value absent, should be file (noop) | |
| Info: /Stage[main]/Netbackup::Client::Config/File[bp.conf]: Scheduling refresh of Service[netbackup-client] | |
| Notice: /Stage[main]/Netbackup::Client::Config/Service[netbackup-client]/ensure: current_value stopped, should be running (noop) | |
| Info: /Stage[main]/Netbackup::Client::Config/Service[netbackup-client]: Unscheduling refresh on Service[netbackup-client] | |
| Notice: Class[Netbackup::Client::Config]: Would have triggered 'refresh' from 2 events | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Logical_volume[lvopenv7c]/ensure: current_value absent, should be present (noop) | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Filesystem[/dev/rootvg/lvopenv7c]/ensure: current_value absent, should be present (noop) | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Exec[ensure mountpoint '/opt/openv7c' exists]/returns: current_value notrun, should be 0 (noop) | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Mount[/opt/openv7c]/ensure: current_value unmounted, should be mounted (noop) | |
| Info: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Mount[/opt/openv7c]: Scheduling refresh of Mount[/opt/openv7c] | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Mount[/opt/openv7c]: Would have triggered 'refresh' from 1 events | |
| Info: /Stage[main]/Profile::Netbackup::Files/Lvm::Logical_volume[lvopenv7c]/Mount[/opt/openv7c]: Scheduling refresh of Mount[/opt/openv7c] | |
| Notice: Lvm::Logical_volume[lvopenv7c]: Would have triggered 'refresh' from 5 events | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Nfs::Client::Mount[/nbuagent]/Mount[shared gvepss0020:/vol/vol_nbu_binaries2 by test-172-ct20.emea.test.com /nbuagent]/ensure: current_value unmounted, should be mounted (noop) | |
| Info: /Stage[main]/Profile::Netbackup::Files/Nfs::Client::Mount[/nbuagent]/Mount[shared gvepss0020:/vol/vol_nbu_binaries2 by test-172-ct20.emea.test.com /nbuagent]: Scheduling refresh of Mount[shared gvepss0020:/vol/vol_nbu_binaries2 by test-172-ct20.emea.test.com /nbuagent] | |
| Notice: /Stage[main]/Profile::Netbackup::Files/Nfs::Client::Mount[/nbuagent]/Mount[shared gvepss0020:/vol/vol_nbu_binaries2 by test-172-ct20.emea.test.com /nbuagent]: Would have triggered 'refresh' from 1 events | |
| Info: /Stage[main]/Profile::Netbackup::Files/Nfs::Client::Mount[/nbuagent]/Mount[shared gvepss0020:/vol/vol_nbu_binaries2 by test-172-ct20.emea.test.com /nbuagent]: Scheduling refresh of Mount[shared gvepss0020:/vol/vol_nbu_binaries2 by test-172-ct20.emea.test.com /nbuagent] | |
| Notice: Nfs::Client::Mount[/nbuagent]: Would have triggered 'refresh' from 2 events | |
| Notice: Class[Profile::Netbackup::Files]: Would have triggered 'refresh' from 3 events | |
| Notice: Stage[main]: Would have triggered 'refresh' from 3 events | |
| Notice: Applied catalog in 7.35 seconds | |
| class role::base { | |
| # default vm | |
| include profile::common::base | |
| include profile::common::hostname | |
| include profile::common::grub | |
| include profile::common::files | |
| if $facts['disks']['sdb'] { | |
| include profile::common::datavg | |
| } | |
| include profile::common::syslog | |
| include profile::common::time | |
| include profile::common::network | |
| include profile::common::postfix | |
| include profile::common::snmp | |
| include profile::common::security_policy | |
| include profile::hypervisor::vmtools | |
| include profile::hypervisor::kmod | |
| include profile::hypervisor::sysctl | |
| include profile::backup::rear | |
| include profile::monitoring::nmon | |
| include profile::monitoring::nagios | |
| include profile::hypervisor::fsext4 | |
| #include profile::netbackup::init | |
| # base | |
| include profile::netbackup::files | |
| include profile::netbackup::install | |
| Class['profile::netbackup::files'] -> Class['profile::netbackup::install'] | |
| } | |
| ----files.pp------ | |
| class profile::netbackup::files ( | |
| Hash $logical_volumes, | |
| ) { | |
| file { '/opt/openv7c': | |
| ensure => 'directory', | |
| owner => 'root', | |
| group => 'root', | |
| mode => '0755', | |
| } | |
| file { '/usr/openv': | |
| ensure => 'link', | |
| target => '/opt/openv7c', | |
| require => File['/opt/openv7c'], | |
| } | |
| nfs::client::mount {'/nbuagent': | |
| mount => '/nbuagent', | |
| server => 'gvepss0020', | |
| share => '/vol/vol_nbu_binaries2', | |
| perm => '0755', | |
| options => 'rw,nfsvers=3', | |
| } | |
| create_resources('lvm::logical_volume', $logical_volumes) | |
| } | |
| -----install.pp ------- | |
| class profile::netbackup::install { | |
| class { 'netbackup::client': | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment