Skip to content

Commit d298e3f

Browse files
author
deepakt7340
committed
replace class for profile::cron to profile::system::cron
1 parent 68c2850 commit d298e3f

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

modules/enableit/monitor/manifests/system/service/sssd/auth.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
TEST_USERS=(${test_users.join(' ')})\n",
2828
noop => $noop_value,
2929
}
30-
profile::cron::job { 'test sssd user lookup':
30+
profile::system::cron::job { 'test sssd user lookup':
3131
enable => $_enable,
3232
minute => '*/10',
3333
user => 'obmondo-admin',

modules/enableit/profile/REFERENCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* [`profile::computing::slurm::slurmctld`](#profile--computing--slurm--slurmctld): Slurm slurm::slurmctld
2020
* [`profile::computing::slurm::slurmd`](#profile--computing--slurm--slurmd): Slurm slurm::slurmd
2121
* [`profile::computing::slurm::slurmdbd`](#profile--computing--slurm--slurmdbd): Slurm slurm::slurmctld
22-
* [`profile::cron`](#profile--cron): cron
22+
* [`profile::system::cron`](#profile--cron): cron
2323
* [`profile::db::cassandra`](#profile--db--cassandra): Profile for managing Cassandra database
2424
* [`profile::db::elasticsearch`](#profile--db--elasticsearch): Elasticsearch profile Puppet module does not support 8.x and Zscaler needs 8.x only Cert Setup NOTE: The cert are automatically setup when
2525
* [`profile::db::elasticsearch::cerebro`](#profile--db--elasticsearch--cerebro): Cerebro
@@ -152,7 +152,7 @@
152152
* [`profile::certs::ca_cert`](#profile--certs--ca_cert): CA Cert
153153
* [`profile::certs::letsencrypt::domain`](#profile--certs--letsencrypt--domain): Certificates NOTE: only haproxy role support letsencrypt for now blackbox will scrape the domains if its given in the role::web::haproxy
154154
* [`profile::certs::manual`](#profile--certs--manual): Manual certificate TODO: lets not accept expired cert from users. need to update the underlying module openssl::cert_date_valid($_cert_file)
155-
* [`profile::cron::job`](#profile--cron--job): Wrapper that escapes cron command for easy use
155+
* [`profile::system::cron::job`](#profile--cron--job): Wrapper that escapes cron command for easy use
156156
* [`profile::storage::mount`](#profile--storage--mount): regular mount
157157
* [`profile::storage::nfs::server::export`](#profile--storage--nfs--server--export): nfs export
158158
* [`profile::system::selinux::fcontext`](#profile--system--selinux--fcontext)
@@ -1084,13 +1084,13 @@ Data type: `String`
10841084

10851085
Default value: `'127.0.0.1'`
10861086

1087-
### <a name="profile--cron"></a>`profile::cron`
1087+
### <a name="profile--cron"></a>`profile::system::cron`
10881088

10891089
cron
10901090

10911091
#### Parameters
10921092

1093-
The following parameters are available in the `profile::cron` class:
1093+
The following parameters are available in the `profile::system::cron` class:
10941094

10951095
* [`purge_unmanaged`](#-profile--cron--purge_unmanaged)
10961096
* [`jobs`](#-profile--cron--jobs)
@@ -10476,13 +10476,13 @@ Data type: `Optional[Array[Stdlib::Port]]`
1047610476

1047710477
Default value: `undef`
1047810478

10479-
### <a name="profile--cron--job"></a>`profile::cron::job`
10479+
### <a name="profile--cron--job"></a>`profile::system::cron::job`
1048010480

1048110481
Wrapper that escapes cron command for easy use
1048210482

1048310483
#### Parameters
1048410484

10485-
The following parameters are available in the `profile::cron::job` defined type:
10485+
The following parameters are available in the `profile::system::cron::job` defined type:
1048610486

1048710487
* [`command`](#-profile--cron--job--command)
1048810488
* [`enable`](#-profile--cron--job--enable)
@@ -10543,15 +10543,15 @@ Default value: `'*'`
1054310543

1054410544
##### <a name="-profile--cron--job--hour"></a>`hour`
1054510545

10546-
Data type: `Profile::Cron::Hour`
10546+
Data type: `Profile::System::Cron::Hour`
1054710547

1054810548

1054910549

1055010550
Default value: `'*'`
1055110551

1055210552
##### <a name="-profile--cron--job--minute"></a>`minute`
1055310553

10554-
Data type: `Profile::Cron::Minute`
10554+
Data type: `Profile::System::Cron::Minute`
1055510555

1055610556

1055710557

modules/enableit/profile/manifests/projectmanagement/perforce.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
group => 'root'
107107
}
108108

109-
profile::cron::job { 'p4d checkpoint and snapshot':
109+
profile::system::cron::job { 'p4d checkpoint and snapshot':
110110
command => "chronic /opt/obmondo/bin/perforce-p4d-backup --log-dir '${log_dir}' --backup-target-dir '${backup_dir}' --all --keep-days ${backup_retention} --delete", # lint:ignore:140chars
111111
hour => 3,
112112
minute => 0,

modules/enableit/profile/manifests/storage/nfs.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
# Automatically lazy unmount mounted snapshots from NetApp
23-
profile::cron::job { 'umount netapp snapshots':
23+
profile::system::cron::job { 'umount netapp snapshots':
2424
enable => $_has_nfs_mounts,
2525
command => 'findmnt -t nfs,nfs4 -o TARGET --raw | grep /.snapshot/ | xargs --no-run-if-empty umount -l',
2626
hour => 2,

modules/enableit/profile/manifests/system/cron.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
$jobs.each |$name, $job| {
18-
profile::cron::job { $name:
18+
profile::system::cron::job { $name:
1919
* => $job,
2020
}
2121
}

modules/enableit/profile/manifests/system/cron/job.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Variant[Enum['*'], Eit_types::Time::Weekdays] $weekday = '*',
77
Cron::Month $month = '*',
88
Variant[Enum['*'], Eit_types::Time::Monthday] $monthday = '*',
9-
Profile::Cron::Hour $hour = '*',
10-
Profile::Cron::Minute $minute = '*',
9+
Profile::System::Cron::Hour $hour = '*',
10+
Profile::System::Cron::Minute $minute = '*',
1111
Hash[String, String] $environment = {},
1212
Eit_types::Noop_Value $noop_value = undef,
1313
) {

modules/enableit/profile/manifests/virtualization/docker.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
}
209209
}
210210

211-
profile::cron::job { 'regularly prune docker system':
211+
profile::system::cron::job { 'regularly prune docker system':
212212
enable => $prune_system,
213213
command => "chronic docker system prune --all --force --filter until=$(( ${prune_duration} * 24 ))h",
214214
user => 'root',

modules/enableit/profile/types/cron/hour.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type Profile::Cron::Hour = Variant[
1+
type Profile::System::Cron::Hour = Variant[
22
Enum['*'],
33
Integer[0,24],
44
Array[Integer[0,24]],

modules/enableit/profile/types/cron/minute.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type Profile::Cron::Minute = Variant[
1+
type Profile::System::Cron::Minute = Variant[
22
Enum['*'],
33
Integer[0,60],
44
Array[Integer[0,60]],

0 commit comments

Comments
 (0)