0

I would like to install apt-dater-host on Debian and CentOS-based systems using puppet and foreman.

On Debian the package is available on the standard repos - but on CentOs this is not the case - I used RPM-search and got the following result.

How can I install the package using yum?

MyFault
  • 913
  • 3
  • 15
  • 36

1 Answers1

1

On CentOS, you'll need to find a yum repository that holds the package, and then add it to the system using the Puppet yumrepo resource.

class aptdater {

  if $::osfamily == 'RedHat' {

    # Only install the yum repo on RH-family systems
    yumrepo { 'blah':
      ...
    }

    # Override the package to require the yum repo to be deployed first
    Package['apt-dater-host'] {
      require => Yumrepo['blah'],
    }
  }

  package { 'apt-dater-host':
    ensure => present,
  }
}
Craig Watson
  • 9,575
  • 3
  • 32
  • 47