Why do these feel like homework questions? :D
You can add logic to your manifest based on what environment the agent is
running under using simple if statements. For example:
if $facts['environment'] != 'production' {
notify { 'This is a non-production node!': }
}
If you're not
Hi y tickets are these
I am struggling with to write scripts
another two scripts I need please
1 )
In the Puppet scripts, create a script which is active on every
environment *except
for prod and is only installed on the SSH servers*. This script should run
via cron every 5 minutes, which can be
okay Thank You
On Sat, Aug 1, 2020 at 3:17 AM Chris wrote:
> You put the perl script and backup scripts in a module, and deploy as
> files. In my case, they are part of a private module called bayhosting:
>
> file {
> "/var/local/backups/mysql":
> ensure => directory,
> mode
You put the perl script and backup scripts in a module, and deploy as
files. In my case, they are part of a private module called bayhosting:
file {
"/var/local/backups/mysql":
ensure => directory,
mode => '0700',
owner => 'root',
group => 'root',
require
if I write this code how will I run it from puppet
On Sat, Aug 1, 2020 at 1:39 AM Chris wrote:
> I use this as my mysql backup script:
> https://github.com/ghstwhl/MySQLBackup
>
> It expects that the credentials for the database are in ~/.my.cnf for the
> user running the script. If you are
I use this as my mysql backup script:
https://github.com/ghstwhl/MySQLBackup
It expects that the credentials for the database are in ~/.my.cnf for the
user running the script. If you are using puppetlabs/mysql to manage your
mysql database then this is already set up for you and you just need to