Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot specify more than one of content, source, target in init.pp #65

Open
7yl4r opened this issue Aug 4, 2018 · 1 comment
Open

Comments

@7yl4r
Copy link

7yl4r commented Aug 4, 2018

I am looking to use this to set vm.swappiness so my setup is very simple.

Heira:

sysctl::base::values:
    vm.swappiness:
        ensure: '0'

class declaration:

	include sysctl::base

The error:

puppet agent -t
Info: Using configured environment 'test'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for test-node.marine.usf.edu
Error: Failed to apply catalog: Validation of File[/etc/sysctl.d/vm.swappiness.conf] failed: You cannot specify more than one of content, source, target at /etc/puppetlabs/code/environments/test/modules/sysctl/manifests/init.pp:57

Does the file resource declaration at L57 need to be updated? Or maybe there is some issue with default values? It looks to me like the defaults are set to undef though I don't see what the issue is.


env details:

# master:
[root@puppetmaster ]# puppet --version
4.10.11

# node:
[root@test-node ~]# puppet --version
4.10.0
[root@imars-airflow11 ~]# cat /etc/*elease
CentOS Linux release 7.3.1611 (Core) 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.3.1611 (Core) 
CentOS Linux release 7.3.1611 (Core) 
@7yl4r
Copy link
Author

7yl4r commented Aug 4, 2018

I just noticed c33s's puppet4 branch. Is this module not compatible with puppet 4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant