class test {
include redis::install
include redis::config
}
#test-install
class redis::install inherits test{
exec {
"Disable Transparent Huge Pages":
command => '/usr/bin/echo never > /sys/kernel/mm/transparent_hugepage/enabled',
onlyif => '/usr/bin/test -f /sys/kernel/mm/transparent_hugepage/enabled',
}
package { ['redis','filebeat-5.3.2']:
ensure => present,
provider => yum,
#install_option => ['--enablerepo=R_EPEL_RHEL7_Yum']
#source => File['nameofrpm_rpm']['path'],
#require => File['nameofrpm_rpm'],
}
}
#test-config
class redis::config inherits test {
exec {
"Move FILEXXX to right path in PATHXXXX":
command => '/usr/bin/mv /cs/ecommint/etc/systemd/system/*.service /etc/systemd/system/',
# onlyif => "test -e /cs/ecommint/systemd/system/*.service",
# require => File["/cs/eccomint/systemd/system/*service"]
}
exec {
"Reload System Control Deamon":
command => '/usr/bin/systemctl deamon-reload',
}
}
But it's not working
Some one can help me?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f07dd07c-3fef-410d-99ad-0e7a0c310615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.