Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from vmpr/master
Browse files Browse the repository at this point in the history
 added compatibility for xcp-ng hypervisor
  • Loading branch information
schurzi committed Feb 20, 2019
2 parents 45f93b0 + 1a1e777 commit a19810f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# install
class secc_sshd::install {

# XCP is not a standard operatingsystem type for puppet
# so there is not standard package provider definied
# this fixes the problem, until puppet will define a standard package provider for "XCP"

package { 'openssh':
if $::operatingsystem == 'XCP' {
package { 'openssh':
# we set it to installed, because xcp-ng will handle the updates of sshd by it self
ensure => installed,
provider => yum,
}
}
else {
package { 'openssh':
ensure => latest,
}
}

}

0 comments on commit a19810f

Please sign in to comment.