tripwire agent installation failure.on.only the /tmp/te-agent.bin file resource working but after that exec 'teagent_install not working.please guide me where i am doing it wrong

asked 2017-08-31 05:54:35 -0600

proy gravatar image

updated 2017-09-01 07:37:12 -0600

DarylW gravatar image

.

class te_agent ($te_server_host='10.212.140.156',$te_service_port='9898',$te_services_passphrase='f9W~3f5ZA&0FL_lmkght#') {
    file {'/tmp/te_agent.bin':
      ensure => file,
      mode   => '0700',
      source => 'puppet:///modules/te_agent/te_agent.bin'
    }
    exec {'teagent_install':
      command => '/tmp/te_agent.bin --eula accept --silent --server-host $te_server_host --server-port $te_service_port --passphrase $te_services_passphrase' ,
      creates => "/tmp/te_agent.bin",
    }
    service { 'twdaemon':
    ensure     => running,
    enable     => true,
    subscribe => File['/usr/local/tripwire/te/agent/data/config/agent.properties'],
    }
    file {"/usr/local/tripwire/te/agent/data/config/agent.properties":
      content => template('te_agent/agent.properties.erb'),
      owner => 'root',
      group => 'root',
      mode => '644',
      require => Exec['teagent_install'],
    }
    }
edit retag flag offensive close merge delete