-2

Is there any facter variable available or I can create a custom facter variable to identify the CentOS and Amazon Instances?

I want to install some utils on CentOS and Amazon Linux instances but not able to find a way to do that using puppet.

ramesh.mimit
  • 9,445
  • 4
  • 21
  • 23

2 Answers2

1

You can identify the operating system with the fact operatingsystem. The two values that you are interested in are Amazon and CentOS. If you log in to each host and run facter you can see what values are reported by each.

Chris Pitman
  • 12,990
  • 3
  • 41
  • 56
0

Must create file /etc/redhat-release containing "CentOS release 7.1