Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

unzip install #4

@jostra

Description

@jostra

It would be nice to add unzip package installation during deployment. I have just create some modification and works:

zip.pp
class mcafee_epo_agent::zip {
package { 'unzip':
ensure => installed,
}
}

and include in init.pp

Verify if target host is Linux

if $::kernel == 'Linux' {
include mcafee_epo_agent::zip ##add

and

Check if Class is disabled (Helps to disable some hosts within Foreman/Satellite)

if $class_enabled_real == true {
  case $agent_install_type {
    'script': {
      $agent_install_script_real = '/tmp/McAfee-Install.sh'
      file{ $agent_install_script:
        ensure => 'present',
        path   => $agent_install_script_real,
        source => $agent_install_script,
        mode   => '0700',
        owner  => 'root',
        group  => 'root',
        **subscribe => Class['mcafee_epo_agent::zip'],**  ##add
      }

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions