This manifest get the error above.

class services::scomagent (
    $install_source = 'puppet:///modules/services/MOMAgent.msi',
    $msi_source = 'C:\Install\MOMAgent.msi',
    $msi_install_dir = '"C:\\Program Files\\System Center Operations 
Manager 2007"',
    $msi_package_name = "System Center Operations Manager 2007 R2 Agent",
    $msi_logfile = 
'C:\ProgramData\PuppetLabs\puppet\var\log\$msi_package_name.log'
){
    file { 'C:\\Install':
        ensure => directory,
        mode => '0770',
        owner => 'SYSTEM',
        group => 'Administrators',
    }
    file { $msi_source:
        ensure => file,
        source => $install_source,
        mode => '0770',
        owner => 'SYSTEM',
        group => 'Administrators',
        require => file['C:\\Install']
    }
    package {'System Center Operations Manager 2007 R2 Agent':
        ensure     => present,
        provider => 'msi',
        source     => $msi_source,
        install_options    => {'INSTALLDIR' => $msi_install_dir},
        require => file[$msi_source]
    }
}

puppet apply --debug --trace 
\\puppetmaster.domain.com\puppet\development\modules\services\manifests\scomagent.pp
info: Loading facts in 
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/defaultgateway.rb
info: Loading facts in 
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/networkadapters.rb
warning: Deprecation notice:  Resource references should now be capitalized 
on line 21 in file 
//puppetmaster.domain.com/puppet/development/modules/services/manifests/scomagent.pp
warning: Deprecation notice:  Resource references should now be capitalized 
on line 28 in file 
//puppetmaster.domain.com/puppet/development/modules/services/manifests/scomagent.pp
debug: Creating default schedules
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Puppet::Type::File::ProviderPosix: feature posix is missing
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
debug: 
/File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/var]
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/etc]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/log]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/var]
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_data]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: 
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/puppetdlock]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/run]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/var]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/var]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Autorequiring 
File[C:/ProgramData/PuppetLabs/puppet/var]
debug: 
/File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
debug: 
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.domain.com.pem]:
 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]
debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]
debug: 
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.domain.com.pem]:
 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]
debug: /File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]
debug: 
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.domain.com.pem]: 
Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]
debug: Finishing transaction 39629568
debug: Loaded state in 0.02 seconds
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1374561947'
debug: /Schedule[daily]: Skipping device resources because running on a host
debug: /Schedule[monthly]: Skipping device resources because running on a 
host
debug: /Schedule[hourly]: Skipping device resources because running on a 
host
debug: /Schedule[never]: Skipping device resources because running on a host
debug: /Schedule[weekly]: Skipping device resources because running on a 
host
debug: /Schedule[puppet]: Skipping device resources because running on a 
host
debug: Finishing transaction 40310916
debug: Storing state
debug: Stored state in 0.03 seconds
notice: Finished catalog run in 0.09 seconds
debug: Finishing transaction 39396972
debug: Received report to process from server.domain.com
debug: Processing report from server.domain.com with processor 
Puppet::Reports::Store

The agent is installed and can configure any other manifests. I can install 
the MSI with this manifest:

class services::scomagent (
    $install_source = 'puppet:///modules/services/MOMAgent.msi',
    $msi_source = 'C:\Install\MOMAgent.msi',
    $msi_install_dir = '"C:\\Program Files\\System Center Operations 
Manager 2007"',
    $msi_package_name = "System Center Operations Manager 2007 R2 Agent",
    $msi_logfile = 
'C:\ProgramData\PuppetLabs\puppet\var\log\$msi_package_name.log'
){
    file { 'C:\\Install':
        ensure => directory,
        mode => '0770',
        owner => 'SYSTEM',
        group => 'Administrators',
    }
    file { $msi_source:
        ensure => file,
        source => $install_source,
        mode => '0770',
        owner => 'SYSTEM',
        group => 'Administrators',
        require => file['C:\\Install']
    }

    $scom_server  = 'x3012app061.infra.be.ch'
    $scom_mgmtgrp = 'a88a-scom'
    
    $msiexec_path = 'c:\Windows\System32\msiexec.exe'
    $install_command = "$msiexec_path /i $msi_source /qn 
INSTALLDIR=$msi_install_dir /L*v $msi_logfile USE_SETTINGS_FROM_AD=0 
MANAGEMENT_SERVER_DNS=$scom_server MANAGEMENT_GROUP=$scom_mgmtgrp 
ACTIONS_USE_COMPUTER_ACCOUNT=1 USE_MANUALLY_SPECIFIED_SETTINGS=1"
    exec {"$msi_package_name":
         command => $install_command,
    }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to