puppet-rabbitmq
puppet-rabbitmq copied to clipboard
Error using module on Amazon Linux 2017.09
Using the following config, I get an error about setting up the systemd script. Amazon Linux (an offshoot of RHEL) still uses sysvinit. How can I use the old /etc/init.d/ scripts with your module?
class { 'rabbitmq':
config_cluster => true,
cluster_nodes => $hostlist,
cluster_node_type => 'ram',
erlang_cookie => "${erlang_cookie}",
wipe_db_on_cookie_change => true,
delete_guest_user => true,
}
Error: Cannot create /etc/systemd/system/rabbitmq-server.service.d; parent directory /etc/systemd/system does not exist
Error: /Stage[main]/Rabbitmq::Config/File[/etc/systemd/system/rabbitmq-server.service.d]/ensure: change from absent to directory failed: Cannot create /etc/systemd/system/rabbitmq-server.service.d; parent directory /etc/systemd/system does not exist
From a quick look, this is probably partially because of the naive versioncmp at https://github.com/voxpupuli/puppet-rabbitmq/blob/master/manifests/config.pp#L228 as 2017 > 7. https://github.com/camptocamp/facterdb/blob/master/facts/3.6/amazon-2017-x86_64.facts#L272
So one quick fix would just be to set a sane upper limit there, or just do a straight string comparison. But as I was discussing with @bastelfreak re: Arch support, this whole section really should be cleaned up.
In some cases, there might be a workaround via params the module exposes, but I don't think there's currently support for fixing it that way either (without additional changes).
@mattboston I know this has been a while, but if this is an issue, can you see if the latest version of the module behaves the same way? There have been some changes in this logic in the latest release thanks to @bastelfreak, however, the module may still need some additional work to officially support Amazon Linux.
I noticed this with another puppet module as well, so I got around this by setting a default Service provider base on the version of linux in one of my higher level modules.
Basically, it looks a bit like this and if it's a certain OS, then I define $service_manager in Foreman if it has issues w/ using the correct service manager.
I'll see if I can test the new code next week.
class fm_base::linux::services (
$service_manager = 'redhat',
) {
Service{
provider => $service_manager,
}
}
Is this is a bug within Puppet? If I see this correctly, we do not write the service file and we do not set the service provider (or am I blind?). Puppet should fiddle that out itself. what does facter -p service_provider say on your box?
I'm also having an issue w/ nrpe where I have to do the same thing. These are the only instances running Amazon Linux 2, just for RabbitMQ. All my other instances in my network are Amazon Linux and 1 CentOS and I'm not having this issue w/ the wrong service provider.
# facter -p service_provider
redhat
# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
# rpm -qa | egrep 'puppet|facter|hiera'
puppetlabs-release-pc1-1.1.0-5.el7.noarch
puppet-agent-1.10.14-1.el7.x86_64
mhm, so the default provider is already redhat. Unless it is explicitly set to something else, it should work out of the box. Can you do on the box:
puppet resource service $servicename --debug
and throw the output into this issue?
We don't set the serviceprovider, and the default should be the same as the service_provider fact:
https://github.com/voxpupuli/puppet-rabbitmq/blob/9af05f6ff5dec48e796dd98a481e3475f8b2150e/manifests/service.pp#L28-L34
I think the issues were more related to some of the version specific code in the module, as Amazon Linux has different versioning (tho not sure why the workaround mentioned helps)
Due to being an older ticket and lack of info, there may be some confusion. Originally I tried installing on Amazon Linux 2017.09, but had issues, so tried Amazon Linux 2. The Amazon Linux YYYY.MM seem to be following the service/init.d scripts, but Amazon Linux 2 has moved to systemd, the later having issues with service provider. You guys have been great jumping on this, let me set aside some time this next week to try both versions of Amazon Linux and test the newest version of the module.
I'm throwing some details below just for future reference. The details for Amazon Linux 2018.03 is just from a server with that OS, it's not a Rabbit server.
Amazon Linux 2018.03 https://aws.amazon.com/amazon-linux-ami/
[root@search-idx-c001s001 ~]# cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
[root@search-idx-c001s001 ~]# rpm -qa | egrep 'puppet|facter|hiera'
puppetlabs-release-pc1-1.1.0-5.el5.noarch
puppet-agent-1.10.14-1.el5.x86_64
[root@search-idx-c001s001 ~]# facter -p service_provider
redhat
Amazon Linux 2 https://aws.amazon.com/amazon-linux-2/
[root@job-mq-c001s002 ~]# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
[root@job-mq-c001s002 ~]# rpm -qa | egrep 'puppet|facter|hiera'
puppetlabs-release-pc1-1.1.0-5.el7.noarch
puppet-agent-1.10.14-1.el7.x86_64
[root@job-mq-c001s002 ~]# facter -p service_provider
redhat
Amazon Linux 2018.03
[root@search-idx-c001s001 ~]# puppet resource service $servicename --debug
Debug: Runtime environment: puppet_version=4.10.12, ruby_version=2.1.9, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Facter: searching for custom fact "operatingsystem".
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Facter: fact "facterversion" has resolved to "3.6.10".
Debug: Facter: fact "aio_agent_version" has resolved to "1.10.14".
Debug: Facter: searching "/opt/puppetlabs/facter/facts.d" for external facts.
Debug: Facter: searching "/etc/facter/facts.d" for external facts.
Debug: Facter: resolving facts from YAML file "/etc/facter/facts.d/fmrole.yaml".
Debug: Facter: fact "fmrole" has resolved to "unknown".
Debug: Facter: completed resolving facts from YAML file "/etc/facter/facts.d/fmrole.yaml".
Debug: Facter: resolving facts from YAML file "/etc/facter/facts.d/azone.yaml".
Debug: Facter: fact "azone" has resolved to "useast".
Debug: Facter: completed resolving facts from YAML file "/etc/facter/facts.d/azone.yaml".
Debug: Facter: resolving facts from YAML file "/etc/facter/facts.d/clientid.yaml".
Debug: Facter: fact "clientid" resolved to null and will not be added.
Debug: Facter: completed resolving facts from YAML file "/etc/facter/facts.d/clientid.yaml".
Debug: Facter: skipping external facts for "/etc/puppetlabs/facter/facts.d": No such file or directory
Debug: Facter: resolving operating system facts.
Debug: Facter: resolving kernel facts.
Debug: Facter: fact "kernel" has resolved to "Linux".
Debug: Facter: fact "kernelrelease" has resolved to "4.14.62-65.117.amzn1.x86_64".
Debug: Facter: fact "kernelmajversion" has resolved to "4.14".
Debug: Facter: fact "kernelversion" has resolved to "4.14.62".
Debug: Facter: executing command: lsb_release -a
Debug: Facter: lsb_release was not found on the PATH.
Debug: Facter: fact "osfamily" has resolved to "RedHat".
Debug: Facter: fact "operatingsystemmajrelease" has resolved to "2018".
Debug: Facter: fact "operatingsystemrelease" has resolved to "2018.03".
Debug: Facter: fact "hardwaremodel" has resolved to "x86_64".
Debug: Facter: fact "architecture" has resolved to "x86_64".
Debug: Facter: fact "operatingsystem" has resolved to "Amazon".
Debug: Facter: fact "selinux" has resolved to false.
Debug: Facter: fact "os" has resolved to {
architecture => "x86_64",
family => "RedHat",
hardware => "x86_64",
name => "Amazon",
release => {
full => "2018.03",
major => "2018",
minor => "03"
},
selinux => {
enabled => false
}
}.
Debug: Facter: searching for custom fact "osfamily".
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'cfpropertylist' for feature 'cfpropertylist'
Debug: Facter: searching for custom fact "operatingsystemrelease".
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Facter: searching for custom fact "operatingsystemmajrelease".
Debug: Facter: searching for operatingsystemmajrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemmajrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemmajrelease.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderInit: false value when expecting true
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderOpenbsd: file /usr/sbin/rcctl does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderInit: false value when expecting true
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderOpenbsd: file /usr/sbin/rcctl does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: /Service[blk-availability]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[saslauthd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[haveged]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cgconfig]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[nfs]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[svnserve]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rpcidmapd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[network]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[auditd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[kibana]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[sshd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[psacct]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[acpid]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-init]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[iptables]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rpcsvcgssd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rsyslog]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[netconsole]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[nrpe]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[quota_nld]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[metricbeat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[crond]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[mdmonitor]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-init-local]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[hibagent]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[ip6tables]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[pxp-agent]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[lvm2-monitor]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[atd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cgred]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[lvm2-lvmpolld]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[puppet]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-config]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rpcbind]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rdisc]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[lvm2-lvmetad]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rngd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[irqbalance]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[chronyd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[udev-post]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[nfslock]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[sysstat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-final]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[messagebus]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[elasticsearch-search-idx-c001s001]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[rpcgssd]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[filebeat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[packetbeat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cfn-hup]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[netfs]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[sendmail]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[mcollective]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: Executing '/sbin/initctl list'
Debug: /Service[rc]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[update-motd]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-shutdown]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[control-alt-delete]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[rcS-emergency]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[kexec-disable]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[quit-plymouth]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[prefdm]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[init-system-dbus]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[print-image-id]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[amazon-efs-mount-watchdog]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[elastic-network-interfaces]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[splash-manager]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[start-ttys]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[amazon-ssm-agent]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: /Service[rcS-sulogin]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: Executing: '/sbin/service blk-availability status'
Debug: Executing: '/sbin/chkconfig blk-availability'
Debug: Executing: '/sbin/service saslauthd status'
Debug: Executing: '/sbin/chkconfig saslauthd'
Debug: Executing: '/sbin/service haveged status'
Debug: Executing: '/sbin/chkconfig haveged'
Debug: Executing: '/sbin/service cgconfig status'
Debug: Executing: '/sbin/chkconfig cgconfig'
Debug: Executing: '/sbin/service nfs status'
Debug: Executing: '/sbin/chkconfig nfs'
Debug: Executing: '/sbin/service svnserve status'
Debug: Executing: '/sbin/chkconfig svnserve'
Debug: Executing: '/sbin/service rpcidmapd status'
Debug: Executing: '/sbin/chkconfig rpcidmapd'
Debug: Executing: '/sbin/service network status'
Debug: Executing: '/sbin/chkconfig network'
Debug: Executing: '/sbin/service auditd status'
Debug: Executing: '/sbin/chkconfig auditd'
Debug: Executing: '/sbin/service kibana status'
Debug: Executing: '/sbin/chkconfig kibana'
Debug: Executing: '/sbin/service sshd status'
Debug: Executing: '/sbin/chkconfig sshd'
Debug: Executing: '/sbin/service psacct status'
Debug: Executing: '/sbin/chkconfig psacct'
Debug: Executing: '/sbin/service acpid status'
Debug: Executing: '/sbin/chkconfig acpid'
Debug: Executing: '/sbin/service cloud-init status'
Debug: Executing: '/sbin/chkconfig cloud-init'
Debug: Executing: '/sbin/service iptables status'
Debug: Executing: '/sbin/chkconfig iptables'
Debug: Executing: '/sbin/service rpcsvcgssd status'
Debug: Executing: '/sbin/chkconfig rpcsvcgssd'
Debug: Executing: '/sbin/service rsyslog status'
Debug: Executing: '/sbin/chkconfig rsyslog'
Debug: Executing: '/sbin/service netconsole status'
Debug: Executing: '/sbin/chkconfig netconsole'
Debug: Executing: '/sbin/service nrpe status'
Debug: Executing: '/sbin/chkconfig nrpe'
Debug: Executing: '/sbin/service quota_nld status'
Debug: Executing: '/sbin/chkconfig quota_nld'
Debug: Executing: '/sbin/service metricbeat status'
Debug: Executing: '/sbin/chkconfig metricbeat'
Debug: Executing: '/sbin/service crond status'
Debug: Executing: '/sbin/chkconfig crond'
Debug: Executing: '/sbin/service mdmonitor status'
Debug: Executing: '/sbin/chkconfig mdmonitor'
Debug: Executing: '/sbin/service cloud-init-local status'
Debug: Executing: '/sbin/chkconfig cloud-init-local'
Debug: Executing: '/sbin/service hibagent status'
Debug: Executing: '/sbin/chkconfig hibagent'
Debug: Executing: '/sbin/service ip6tables status'
Debug: Executing: '/sbin/chkconfig ip6tables'
Debug: Executing: '/sbin/service pxp-agent status'
Debug: Executing: '/sbin/chkconfig pxp-agent'
Debug: Executing: '/sbin/service lvm2-monitor status'
Debug: Executing: '/sbin/chkconfig lvm2-monitor'
Debug: Executing: '/sbin/service atd status'
Debug: Executing: '/sbin/chkconfig atd'
Debug: Executing: '/sbin/service cgred status'
Debug: Executing: '/sbin/chkconfig cgred'
Debug: Executing: '/sbin/service lvm2-lvmpolld status'
Debug: Executing: '/sbin/chkconfig lvm2-lvmpolld'
Debug: Executing: '/sbin/service puppet status'
Debug: Executing: '/sbin/chkconfig puppet'
Debug: Executing: '/sbin/service cloud-config status'
Debug: Executing: '/sbin/chkconfig cloud-config'
Debug: Executing: '/sbin/service rpcbind status'
Debug: Executing: '/sbin/chkconfig rpcbind'
Debug: Executing: '/sbin/service rdisc status'
Debug: Executing: '/sbin/chkconfig rdisc'
Debug: Executing: '/sbin/service lvm2-lvmetad status'
Debug: Executing: '/sbin/chkconfig lvm2-lvmetad'
Debug: Executing: '/sbin/service rngd status'
Debug: Executing: '/sbin/chkconfig rngd'
Debug: Executing: '/sbin/service irqbalance status'
Debug: Executing: '/sbin/chkconfig irqbalance'
Debug: Executing: '/sbin/service chronyd status'
Debug: Executing: '/sbin/chkconfig chronyd'
Debug: Executing: '/sbin/service udev-post status'
Debug: Executing: '/sbin/chkconfig udev-post'
Debug: Executing: '/sbin/service nfslock status'
Debug: Executing: '/sbin/chkconfig nfslock'
Debug: Executing: '/sbin/service sysstat status'
Debug: Executing: '/sbin/chkconfig sysstat'
Debug: Executing: '/sbin/service cloud-final status'
Debug: Executing: '/sbin/chkconfig cloud-final'
Debug: Executing: '/sbin/service messagebus status'
Debug: Executing: '/sbin/chkconfig messagebus'
Debug: Executing: '/sbin/service elasticsearch-search-idx-c001s001 status'
Debug: Executing: '/sbin/chkconfig elasticsearch-search-idx-c001s001'
Debug: Executing: '/sbin/service rpcgssd status'
Debug: Executing: '/sbin/chkconfig rpcgssd'
Debug: Executing: '/sbin/service filebeat status'
Debug: Executing: '/sbin/chkconfig filebeat'
Debug: Executing: '/sbin/service packetbeat status'
Debug: Executing: '/sbin/chkconfig packetbeat'
Debug: Executing: '/sbin/service cfn-hup status'
Debug: Executing: '/sbin/chkconfig cfn-hup'
Debug: Executing: '/sbin/service netfs status'
Debug: Executing: '/sbin/chkconfig netfs'
Debug: Executing: '/sbin/service sendmail status'
Debug: Executing: '/sbin/chkconfig sendmail'
Debug: Executing: '/sbin/service mcollective status'
Debug: Executing: '/sbin/chkconfig mcollective'
Debug: Executing: '/sbin/status rc'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status update-motd'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status plymouth-shutdown'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status control-alt-delete'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status rcS-emergency'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status kexec-disable'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status quit-plymouth'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status prefdm'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status init-system-dbus'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status print-image-id'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status amazon-efs-mount-watchdog'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status elastic-network-interfaces'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status splash-manager'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status start-ttys'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status amazon-ssm-agent'
Debug: Executing: '/sbin/initctl --version'
Debug: Executing: '/sbin/status rcS-sulogin'
Debug: Executing: '/sbin/initctl --version'
service { 'acpid':
ensure => 'running',
enable => 'true',
}
service { 'amazon-efs-mount-watchdog':
ensure => 'stopped',
enable => 'false',
}
service { 'amazon-ssm-agent':
ensure => 'running',
enable => 'true',
}
service { 'atd':
ensure => 'running',
enable => 'true',
}
service { 'auditd':
ensure => 'running',
enable => 'true',
}
service { 'blk-availability':
ensure => 'running',
enable => 'true',
}
service { 'cfn-hup':
ensure => 'stopped',
enable => 'false',
}
service { 'cgconfig':
ensure => 'stopped',
enable => 'false',
}
service { 'cgred':
ensure => 'stopped',
enable => 'false',
}
service { 'chronyd':
ensure => 'running',
enable => 'true',
}
service { 'cloud-config':
ensure => 'stopped',
enable => 'true',
}
service { 'cloud-final':
ensure => 'stopped',
enable => 'true',
}
service { 'cloud-init':
ensure => 'stopped',
enable => 'true',
}
service { 'cloud-init-local':
ensure => 'stopped',
enable => 'true',
}
service { 'control-alt-delete':
ensure => 'stopped',
enable => 'true',
}
service { 'crond':
ensure => 'running',
enable => 'true',
}
service { 'elastic-network-interfaces':
ensure => 'stopped',
enable => 'true',
}
service { 'elasticsearch-search-idx-c001s001':
ensure => 'running',
enable => 'true',
}
service { 'filebeat':
ensure => 'running',
enable => 'true',
}
service { 'haveged':
ensure => 'running',
enable => 'true',
}
service { 'hibagent':
ensure => 'running',
enable => 'false',
}
service { 'init-system-dbus':
ensure => 'stopped',
enable => 'true',
}
service { 'ip6tables':
ensure => 'stopped',
enable => 'false',
}
service { 'iptables':
ensure => 'stopped',
enable => 'false',
}
service { 'irqbalance':
ensure => 'running',
enable => 'true',
}
service { 'kexec-disable':
ensure => 'stopped',
enable => 'true',
}
service { 'kibana':
ensure => 'running',
enable => 'true',
}
service { 'lvm2-lvmetad':
ensure => 'running',
enable => 'true',
}
service { 'lvm2-lvmpolld':
ensure => 'running',
enable => 'true',
}
service { 'lvm2-monitor':
ensure => 'stopped',
enable => 'false',
}
service { 'mcollective':
ensure => 'stopped',
enable => 'false',
}
service { 'mdmonitor':
ensure => 'stopped',
enable => 'true',
}
service { 'messagebus':
ensure => 'running',
enable => 'true',
}
service { 'metricbeat':
ensure => 'running',
enable => 'true',
}
service { 'netconsole':
ensure => 'stopped',
enable => 'false',
}
service { 'netfs':
ensure => 'running',
enable => 'true',
}
service { 'network':
ensure => 'running',
enable => 'true',
}
service { 'nfs':
ensure => 'stopped',
enable => 'false',
}
service { 'nfslock':
ensure => 'running',
enable => 'true',
}
service { 'nrpe':
ensure => 'running',
enable => 'true',
}
service { 'packetbeat':
ensure => 'running',
enable => 'true',
}
service { 'plymouth-shutdown':
ensure => 'stopped',
enable => 'true',
}
service { 'prefdm':
ensure => 'stopped',
enable => 'true',
}
service { 'print-image-id':
ensure => 'stopped',
enable => 'true',
}
service { 'psacct':
ensure => 'stopped',
enable => 'false',
}
service { 'puppet':
ensure => 'running',
enable => 'true',
}
service { 'pxp-agent':
ensure => 'stopped',
enable => 'false',
}
service { 'quit-plymouth':
ensure => 'stopped',
enable => 'true',
}
service { 'quota_nld':
ensure => 'stopped',
enable => 'false',
}
service { 'rc':
ensure => 'stopped',
enable => 'true',
}
service { 'rcS-emergency':
ensure => 'stopped',
enable => 'false',
}
service { 'rcS-sulogin':
ensure => 'stopped',
enable => 'true',
}
service { 'rdisc':
ensure => 'stopped',
enable => 'false',
}
service { 'rngd':
ensure => 'running',
enable => 'true',
}
service { 'rpcbind':
ensure => 'running',
enable => 'true',
}
service { 'rpcgssd':
ensure => 'stopped',
enable => 'true',
}
service { 'rpcidmapd':
ensure => 'stopped',
enable => 'false',
}
service { 'rpcsvcgssd':
ensure => 'stopped',
enable => 'false',
}
service { 'rsyslog':
ensure => 'running',
enable => 'true',
}
service { 'saslauthd':
ensure => 'stopped',
enable => 'false',
}
service { 'sendmail':
ensure => 'running',
enable => 'true',
}
service { 'splash-manager':
ensure => 'stopped',
enable => 'true',
}
service { 'sshd':
ensure => 'running',
enable => 'true',
}
service { 'start-ttys':
ensure => 'stopped',
enable => 'true',
}
service { 'svnserve':
ensure => 'stopped',
enable => 'false',
}
service { 'sysstat':
ensure => 'stopped',
enable => 'true',
}
service { 'udev-post':
ensure => 'stopped',
enable => 'true',
}
service { 'update-motd':
ensure => 'stopped',
enable => 'true',
}
Amazon Linux 2
[root@job-mq-c001s002 ~]# puppet resource service $servicename --debug
Debug: Runtime environment: puppet_version=4.10.12, ruby_version=2.1.9, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Facter: searching for custom fact "operatingsystem".
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystem.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Facter: fact "facterversion" has resolved to "3.6.10".
Debug: Facter: fact "aio_agent_version" has resolved to "1.10.14".
Debug: Facter: searching "/opt/puppetlabs/facter/facts.d" for external facts.
Debug: Facter: searching "/etc/facter/facts.d" for external facts.
Debug: Facter: resolving facts from YAML file "/etc/facter/facts.d/azone.yaml".
Debug: Facter: fact "azone" has resolved to "useast".
Debug: Facter: completed resolving facts from YAML file "/etc/facter/facts.d/azone.yaml".
Debug: Facter: resolving facts from YAML file "/etc/facter/facts.d/fmrole.yaml".
Debug: Facter: fact "fmrole" has resolved to "job-mq".
Debug: Facter: completed resolving facts from YAML file "/etc/facter/facts.d/fmrole.yaml".
Debug: Facter: resolving facts from YAML file "/etc/facter/facts.d/clientid.yaml".
Debug: Facter: fact "clientid" resolved to null and will not be added.
Debug: Facter: completed resolving facts from YAML file "/etc/facter/facts.d/clientid.yaml".
Debug: Facter: skipping external facts for "/etc/puppetlabs/facter/facts.d": No such file or directory
Debug: Facter: resolving operating system facts.
Debug: Facter: resolving kernel facts.
Debug: Facter: fact "kernel" has resolved to "Linux".
Debug: Facter: fact "kernelrelease" has resolved to "4.14.62-70.117.amzn2.x86_64".
Debug: Facter: fact "kernelmajversion" has resolved to "4.14".
Debug: Facter: fact "kernelversion" has resolved to "4.14.62".
Debug: Facter: executing command: lsb_release -a
Debug: Facter: lsb_release was not found on the PATH.
Debug: Facter: fact "osfamily" has resolved to "RedHat".
Debug: Facter: fact "operatingsystemmajrelease" has resolved to "4".
Debug: Facter: fact "operatingsystemrelease" has resolved to "4.14.62-70.117.amzn2.x86_64".
Debug: Facter: fact "hardwaremodel" has resolved to "x86_64".
Debug: Facter: fact "architecture" has resolved to "x86_64".
Debug: Facter: fact "operatingsystem" has resolved to "Amazon".
Debug: Facter: fact "selinux" has resolved to false.
Debug: Facter: fact "os" has resolved to {
architecture => "x86_64",
family => "RedHat",
hardware => "x86_64",
name => "Amazon",
release => {
full => "4.14.62-70.117.amzn2.x86_64",
major => "4",
minor => "14"
},
selinux => {
enabled => false
}
}.
Debug: Facter: searching for custom fact "osfamily".
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for osfamily.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'cfpropertylist' for feature 'cfpropertylist'
Debug: Facter: searching for custom fact "operatingsystemrelease".
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemrelease.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Facter: searching for custom fact "operatingsystemmajrelease".
Debug: Facter: searching for operatingsystemmajrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemmajrelease.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for operatingsystemmajrelease.rb in /opt/puppetlabs/puppet/cache/facts.
Debug: Puppet::Type::Service::ProviderInit: false value when expecting true
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderOpenbsd: file /usr/sbin/rcctl does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 4) were true
Debug: Puppet::Type::Service::ProviderInit: false value when expecting true
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderOpenbsd: file /usr/sbin/rcctl does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 4) were true
Debug: /Service[netconsole]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[network]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[cfn-hup]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[metricbeat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[filebeat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: /Service[packetbeat]: Provider redhat does not support features flaggable; not managing attribute flags
Debug: Executing: '/usr/bin/systemctl list-unit-files --type service --full --all --no-pager'
Debug: /Service[amazon-ssm-agent.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[arp-ethers.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[atd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[auditd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[[email protected]]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[blk-availability.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[chrony-wait.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[chronyd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-config.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-final.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-init-local.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[cloud-init.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[console-getty.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[console-shell.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[crond.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[debug-shell.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[dmraid-activation.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[ec2net-scan.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[filebeat.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[[email protected]]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[gssproxy.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[haveged.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[hibagent.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[irqbalance.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[kpatch.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[libstoragemgmt.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[lvm2-monitor.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[mcollective.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[mdmonitor.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[metricbeat.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[nfs-blkmap.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[nfs-rquotad.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[nfs-server.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[nfs.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[nrpe.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[packetbeat.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-halt.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-kexec.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-poweroff.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-quit-wait.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-quit.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-read-write.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-reboot.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[plymouth-start.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[postfix.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[psacct.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[puppet.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[pxp-agent.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rabbitmq-server.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rdisc.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rhel-dmesg.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rhel-domainname.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rngd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rpc-rquotad.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rpcbind.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rsyncd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[rsyslog.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[saslauthd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[[email protected]]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[sshd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[svnserve.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[sysstat.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[systemd-bootchart.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[[email protected]]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[systemd-readahead-collect.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[systemd-readahead-done.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[systemd-readahead-drop.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[systemd-readahead-replay.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[tcsd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: /Service[update-motd.service]: Provider systemd does not support features flaggable; not managing attribute flags
Debug: Executing: '/sbin/service netconsole status'
Debug: Executing: '/sbin/chkconfig netconsole'
Debug: Executing: '/sbin/service network status'
Debug: Executing: '/sbin/chkconfig network'
Debug: Executing: '/sbin/service cfn-hup status'
Debug: Executing: '/sbin/chkconfig cfn-hup'
Debug: Executing: '/sbin/service metricbeat status'
Debug: Executing: '/sbin/chkconfig metricbeat'
Debug: Executing: '/sbin/service filebeat status'
Debug: Executing: '/sbin/chkconfig filebeat'
Debug: Executing: '/sbin/service packetbeat status'
Debug: Executing: '/sbin/chkconfig packetbeat'
Debug: Executing: '/usr/bin/systemctl is-active amazon-ssm-agent.service'
Debug: Executing: '/usr/bin/systemctl is-enabled amazon-ssm-agent.service'
Debug: Executing: '/usr/bin/systemctl is-active arp-ethers.service'
Debug: Executing: '/usr/bin/systemctl is-enabled arp-ethers.service'
Debug: Executing: '/usr/bin/systemctl is-active atd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled atd.service'
Debug: Executing: '/usr/bin/systemctl is-active auditd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled auditd.service'
Debug: Executing: '/usr/bin/systemctl is-active [email protected]'
Debug: Executing: '/usr/bin/systemctl is-enabled [email protected]'
Debug: Executing: '/usr/bin/systemctl is-active blk-availability.service'
Debug: Executing: '/usr/bin/systemctl is-enabled blk-availability.service'
Debug: Executing: '/usr/bin/systemctl is-active chrony-wait.service'
Debug: Executing: '/usr/bin/systemctl is-enabled chrony-wait.service'
Debug: Executing: '/usr/bin/systemctl is-active chronyd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled chronyd.service'
Debug: Executing: '/usr/bin/systemctl is-active cloud-config.service'
Debug: Executing: '/usr/bin/systemctl is-enabled cloud-config.service'
Debug: Executing: '/usr/bin/systemctl is-active cloud-final.service'
Debug: Executing: '/usr/bin/systemctl is-enabled cloud-final.service'
Debug: Executing: '/usr/bin/systemctl is-active cloud-init-local.service'
Debug: Executing: '/usr/bin/systemctl is-enabled cloud-init-local.service'
Debug: Executing: '/usr/bin/systemctl is-active cloud-init.service'
Debug: Executing: '/usr/bin/systemctl is-enabled cloud-init.service'
Debug: Executing: '/usr/bin/systemctl is-active console-getty.service'
Debug: Executing: '/usr/bin/systemctl is-enabled console-getty.service'
Debug: Executing: '/usr/bin/systemctl is-active console-shell.service'
Debug: Executing: '/usr/bin/systemctl is-enabled console-shell.service'
Debug: Executing: '/usr/bin/systemctl is-active crond.service'
Debug: Executing: '/usr/bin/systemctl is-enabled crond.service'
Debug: Executing: '/usr/bin/systemctl is-active debug-shell.service'
Debug: Executing: '/usr/bin/systemctl is-enabled debug-shell.service'
Debug: Executing: '/usr/bin/systemctl is-active dmraid-activation.service'
Debug: Executing: '/usr/bin/systemctl is-enabled dmraid-activation.service'
Debug: Executing: '/usr/bin/systemctl is-active ec2net-scan.service'
Debug: Executing: '/usr/bin/systemctl is-enabled ec2net-scan.service'
Debug: Executing: '/usr/bin/systemctl is-active filebeat.service'
Debug: Executing: '/usr/bin/systemctl is-enabled filebeat.service'
Debug: Executing: '/usr/bin/systemctl is-active [email protected]'
Debug: Executing: '/usr/bin/systemctl is-enabled [email protected]'
Debug: Executing: '/usr/bin/systemctl is-active gssproxy.service'
Debug: Executing: '/usr/bin/systemctl is-enabled gssproxy.service'
Debug: Executing: '/usr/bin/systemctl is-active haveged.service'
Debug: Executing: '/usr/bin/systemctl is-enabled haveged.service'
Debug: Executing: '/usr/bin/systemctl is-active hibagent.service'
Debug: Executing: '/usr/bin/systemctl is-enabled hibagent.service'
Debug: Executing: '/usr/bin/systemctl is-active irqbalance.service'
Debug: Executing: '/usr/bin/systemctl is-enabled irqbalance.service'
Debug: Executing: '/usr/bin/systemctl is-active kpatch.service'
Debug: Executing: '/usr/bin/systemctl is-enabled kpatch.service'
Debug: Executing: '/usr/bin/systemctl is-active libstoragemgmt.service'
Debug: Executing: '/usr/bin/systemctl is-enabled libstoragemgmt.service'
Debug: Executing: '/usr/bin/systemctl is-active lvm2-monitor.service'
Debug: Executing: '/usr/bin/systemctl is-enabled lvm2-monitor.service'
Debug: Executing: '/usr/bin/systemctl is-active mcollective.service'
Debug: Executing: '/usr/bin/systemctl is-enabled mcollective.service'
Debug: Executing: '/usr/bin/systemctl is-active mdmonitor.service'
Debug: Executing: '/usr/bin/systemctl is-enabled mdmonitor.service'
Debug: Executing: '/usr/bin/systemctl is-active metricbeat.service'
Debug: Executing: '/usr/bin/systemctl is-enabled metricbeat.service'
Debug: Executing: '/usr/bin/systemctl is-active nfs-blkmap.service'
Debug: Executing: '/usr/bin/systemctl is-enabled nfs-blkmap.service'
Debug: Executing: '/usr/bin/systemctl is-active nfs-rquotad.service'
Debug: Executing: '/usr/bin/systemctl is-enabled nfs-rquotad.service'
Debug: Executing: '/usr/bin/systemctl is-active nfs-server.service'
Debug: Executing: '/usr/bin/systemctl is-enabled nfs-server.service'
Debug: Executing: '/usr/bin/systemctl is-active nfs.service'
Debug: Executing: '/usr/bin/systemctl is-enabled nfs.service'
Debug: Executing: '/usr/bin/systemctl is-active nrpe.service'
Debug: Executing: '/usr/bin/systemctl is-enabled nrpe.service'
Debug: Executing: '/usr/bin/systemctl is-active packetbeat.service'
Debug: Executing: '/usr/bin/systemctl is-enabled packetbeat.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-halt.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-halt.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-kexec.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-kexec.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-poweroff.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-poweroff.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-quit-wait.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-quit-wait.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-quit.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-quit.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-read-write.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-read-write.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-reboot.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-reboot.service'
Debug: Executing: '/usr/bin/systemctl is-active plymouth-start.service'
Debug: Executing: '/usr/bin/systemctl is-enabled plymouth-start.service'
Debug: Executing: '/usr/bin/systemctl is-active postfix.service'
Debug: Executing: '/usr/bin/systemctl is-enabled postfix.service'
Debug: Executing: '/usr/bin/systemctl is-active psacct.service'
Debug: Executing: '/usr/bin/systemctl is-enabled psacct.service'
Debug: Executing: '/usr/bin/systemctl is-active puppet.service'
Debug: Executing: '/usr/bin/systemctl is-enabled puppet.service'
Debug: Executing: '/usr/bin/systemctl is-active pxp-agent.service'
Debug: Executing: '/usr/bin/systemctl is-enabled pxp-agent.service'
Debug: Executing: '/usr/bin/systemctl is-active rabbitmq-server.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rabbitmq-server.service'
Debug: Executing: '/usr/bin/systemctl is-active rdisc.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rdisc.service'
Debug: Executing: '/usr/bin/systemctl is-active rhel-dmesg.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rhel-dmesg.service'
Debug: Executing: '/usr/bin/systemctl is-active rhel-domainname.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rhel-domainname.service'
Debug: Executing: '/usr/bin/systemctl is-active rngd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rngd.service'
Debug: Executing: '/usr/bin/systemctl is-active rpc-rquotad.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rpc-rquotad.service'
Debug: Executing: '/usr/bin/systemctl is-active rpcbind.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rpcbind.service'
Debug: Executing: '/usr/bin/systemctl is-active rsyncd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rsyncd.service'
Debug: Executing: '/usr/bin/systemctl is-active rsyslog.service'
Debug: Executing: '/usr/bin/systemctl is-enabled rsyslog.service'
Debug: Executing: '/usr/bin/systemctl is-active saslauthd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled saslauthd.service'
Debug: Executing: '/usr/bin/systemctl is-active [email protected]'
Debug: Executing: '/usr/bin/systemctl is-enabled [email protected]'
Debug: Executing: '/usr/bin/systemctl is-active sshd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled sshd.service'
Debug: Executing: '/usr/bin/systemctl is-active svnserve.service'
Debug: Executing: '/usr/bin/systemctl is-enabled svnserve.service'
Debug: Executing: '/usr/bin/systemctl is-active sysstat.service'
Debug: Executing: '/usr/bin/systemctl is-enabled sysstat.service'
Debug: Executing: '/usr/bin/systemctl is-active systemd-bootchart.service'
Debug: Executing: '/usr/bin/systemctl is-enabled systemd-bootchart.service'
Debug: Executing: '/usr/bin/systemctl is-active [email protected]'
Debug: Executing: '/usr/bin/systemctl is-enabled [email protected]'
Debug: Executing: '/usr/bin/systemctl is-active systemd-readahead-collect.service'
Debug: Executing: '/usr/bin/systemctl is-enabled systemd-readahead-collect.service'
Debug: Executing: '/usr/bin/systemctl is-active systemd-readahead-done.service'
Debug: Executing: '/usr/bin/systemctl is-enabled systemd-readahead-done.service'
Debug: Executing: '/usr/bin/systemctl is-active systemd-readahead-drop.service'
Debug: Executing: '/usr/bin/systemctl is-enabled systemd-readahead-drop.service'
Debug: Executing: '/usr/bin/systemctl is-active systemd-readahead-replay.service'
Debug: Executing: '/usr/bin/systemctl is-enabled systemd-readahead-replay.service'
Debug: Executing: '/usr/bin/systemctl is-active tcsd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled tcsd.service'
Debug: Executing: '/usr/bin/systemctl is-active update-motd.service'
Debug: Executing: '/usr/bin/systemctl is-enabled update-motd.service'
service { 'amazon-ssm-agent.service':
ensure => 'running',
enable => 'true',
}
service { 'arp-ethers.service':
ensure => 'stopped',
enable => 'false',
}
service { 'atd.service':
ensure => 'running',
enable => 'true',
}
service { 'auditd.service':
ensure => 'running',
enable => 'true',
}
service { '[email protected]':
ensure => 'stopped',
enable => 'true',
}
service { 'blk-availability.service':
ensure => 'stopped',
enable => 'false',
}
service { 'cfn-hup':
ensure => 'stopped',
enable => 'false',
}
service { 'chrony-wait.service':
ensure => 'stopped',
enable => 'false',
}
service { 'chronyd.service':
ensure => 'running',
enable => 'true',
}
service { 'cloud-config.service':
ensure => 'running',
enable => 'true',
}
service { 'cloud-final.service':
ensure => 'running',
enable => 'true',
}
service { 'cloud-init-local.service':
ensure => 'running',
enable => 'true',
}
service { 'cloud-init.service':
ensure => 'running',
enable => 'true',
}
service { 'console-getty.service':
ensure => 'stopped',
enable => 'false',
}
service { 'console-shell.service':
ensure => 'stopped',
enable => 'false',
}
service { 'crond.service':
ensure => 'running',
enable => 'true',
}
service { 'debug-shell.service':
ensure => 'stopped',
enable => 'false',
}
service { 'dmraid-activation.service':
ensure => 'stopped',
enable => 'true',
}
service { 'ec2net-scan.service':
ensure => 'stopped',
enable => 'false',
}
service { 'filebeat':
ensure => 'running',
enable => 'true',
}
service { 'filebeat.service':
ensure => 'running',
enable => 'true',
}
service { '[email protected]':
ensure => 'stopped',
enable => 'true',
}
service { 'gssproxy.service':
ensure => 'running',
enable => 'false',
}
service { 'haveged.service':
ensure => 'running',
enable => 'true',
}
service { 'hibagent.service':
ensure => 'stopped',
enable => 'false',
}
service { 'irqbalance.service':
ensure => 'running',
enable => 'true',
}
service { 'kpatch.service':
ensure => 'stopped',
enable => 'false',
}
service { 'libstoragemgmt.service':
ensure => 'running',
enable => 'true',
}
service { 'lvm2-monitor.service':
ensure => 'stopped',
enable => 'false',
}
service { 'mcollective.service':
ensure => 'stopped',
enable => 'false',
}
service { 'mdmonitor.service':
ensure => 'stopped',
enable => 'true',
}
service { 'metricbeat':
ensure => 'running',
enable => 'true',
}
service { 'metricbeat.service':
ensure => 'running',
enable => 'true',
}
service { 'netconsole':
ensure => 'stopped',
enable => 'false',
}
service { 'network':
ensure => 'running',
enable => 'true',
}
service { 'nfs-blkmap.service':
ensure => 'stopped',
enable => 'false',
}
service { 'nfs-rquotad.service':
ensure => 'stopped',
enable => 'false',
}
service { 'nfs-server.service':
ensure => 'stopped',
enable => 'false',
}
service { 'nfs.service':
ensure => 'stopped',
enable => 'false',
}
service { 'nrpe.service':
ensure => 'running',
enable => 'true',
}
service { 'packetbeat':
ensure => 'running',
enable => 'true',
}
service { 'packetbeat.service':
ensure => 'running',
enable => 'true',
}
service { 'plymouth-halt.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-kexec.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-poweroff.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-quit-wait.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-quit.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-read-write.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-reboot.service':
ensure => 'stopped',
enable => 'false',
}
service { 'plymouth-start.service':
ensure => 'stopped',
enable => 'false',
}
service { 'postfix.service':
ensure => 'running',
enable => 'true',
}
service { 'psacct.service':
ensure => 'stopped',
enable => 'false',
}
service { 'puppet.service':
ensure => 'running',
enable => 'true',
}
service { 'pxp-agent.service':
ensure => 'stopped',
enable => 'false',
}
service { 'rabbitmq-server.service':
ensure => 'running',
enable => 'true',
}
service { 'rdisc.service':
ensure => 'stopped',
enable => 'false',
}
service { 'rhel-dmesg.service':
ensure => 'running',
enable => 'false',
}
service { 'rhel-domainname.service':
ensure => 'stopped',
enable => 'false',
}
service { 'rngd.service':
ensure => 'running',
enable => 'true',
}
service { 'rpc-rquotad.service':
ensure => 'stopped',
enable => 'false',
}
service { 'rpcbind.service':
ensure => 'stopped',
enable => 'false',
}
service { 'rsyncd.service':
ensure => 'stopped',
enable => 'false',
}
service { 'rsyslog.service':
ensure => 'running',
enable => 'true',
}
service { 'saslauthd.service':
ensure => 'stopped',
enable => 'false',
}
service { '[email protected]':
ensure => 'stopped',
enable => 'false',
}
service { 'sshd.service':
ensure => 'running',
enable => 'true',
}
service { 'svnserve.service':
ensure => 'stopped',
enable => 'false',
}
service { 'sysstat.service':
ensure => 'running',
enable => 'true',
}
service { 'systemd-bootchart.service':
ensure => 'stopped',
enable => 'false',
}
service { '[email protected]':
ensure => 'stopped',
enable => 'false',
}
service { 'systemd-readahead-collect.service':
ensure => 'stopped',
enable => 'true',
}
service { 'systemd-readahead-done.service':
ensure => 'stopped',
enable => 'false',
}
service { 'systemd-readahead-drop.service':
ensure => 'stopped',
enable => 'true',
}
service { 'systemd-readahead-replay.service':
ensure => 'stopped',
enable => 'true',
}
service { 'tcsd.service':
ensure => 'stopped',
enable => 'false',
}
service { 'update-motd.service':
ensure => 'running',
enable => 'true',
}
[wrapped your debug output in backticks]
While I don't like the old Amazon Linux numbering, if they're moving to '2' and '4', that could really cause some conflicts with actual RH numbering. And in this case, it seems like the version is based on Linux kernel version? What does /etc/redhat-release write?
We might have to make os detection more complicated if we want to account for all possible cases.
I would be happy to review PRs or provide suggestions, but I personally can't throw up something to add official support for Amazon Linux in the module.
Debug: Facter: fact "os" has resolved to {
architecture => "x86_64",
family => "RedHat",
hardware => "x86_64",
name => "Amazon",
release => {
full => "4.14.62-70.117.amzn2.x86_64",
major => "4",
minor => "14"
},