Puppet Class: profile::block_local_crontabs

Defined in:
modules/profile/manifests/block_local_crontabs.pp

Summary

Prevents users from provisioning local crontabs on this host

Overview

SPDX-License-Identifier: Apache-2.0



3
4
5
6
7
8
9
10
# File 'modules/profile/manifests/block_local_crontabs.pp', line 3

class profile::block_local_crontabs () {
    # Block everyone except root from using `crontab` to install local
    # crontabs on this host. For more details, see crontab(1)
    file { '/etc/cron.allow':
        ensure  => file,
        content => "root\n",
    }
}