Hi @juliettet @Tej-Singh-Rana @akshayyw
I am facing some issues in puppet for installing group packages!
As I use the names of the node in site.pp it shows “Could not find node statement with name ‘default’”
when I use it in separate file, it executes! But the packages are not installed on nodes!
Hi @Ashu27,
Try including the group in the official.pp
file like so:
class yum_group {
yum::group { '<package-name>':
ensure => present,
timeout => 300,
}
}
include yum_group
I hope that this helps:-)
Hi @juliettet but why you’ve not given the node names?
How will it know where to run?
The last task I got to create symlinks via puppet, in which I’ve used the main.pp and site.pp with exact syntax specifying node names and included class in site.pp too.
Hi @Ashu27,
Try this:
class yum_group {
yum::group { '<package-name>':
ensure => present,
timeout => 300,
}
}
node 'stapp01.stratos.xfusioncorp.com', 'stapp02.stratos.xfusioncorp.com', 'stapp03.stratos.xfusioncorp.com' {
include yum_group
}
node default {}
Let me know if this helps:-)