I am using Puppet Enterprise.
# puppet master --version
4.8.1
Manifests dir (/etc/puppetlabs/code/environments/production/manifests
) contains the following:
iis.pp
rds.pp
site.pp
I have a node definition in site.pp
as shown below:
# cat site.pp
node 'box A' {
include iis
}
Now the issue i am facing is that if i create a new node (say, box B) and add it to site.pp by creating a blank definition as shown below, it still installs softwares that are actually part of another node ('box A' in this case) definition.
node 'box B' { }
I don't have any include
statement in site.pp defined outside the above two node definitions.
Why is this happening?
UPDATE:
# cat iis.pp
$iis_features = ['Web-Server','Web-WebServer','Web-Asp-Net45','Web-ISAPI-Ext','Web-ISAPI-Filter','NET-Framework-45-ASPNET']
windowsfeature { $iis_features:
ensure => present,
}