voxpupuli / puppet-augeasproviders_sysctl

Augeas-based sysctl type and provider for Puppet
Apache License 2.0
10 stars 36 forks source link

value does not work; must use val #8

Open ayohrling opened 8 years ago

ayohrling commented 8 years ago

When working with 2.0.2 release, receive error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: no parameter named 'value'

Example code:

sysctl { 'vm.swappiness':
  ensure => 'present',
  value   => '10',
}
domcleal commented 8 years ago

Perhaps you have another sysctl native or defined type?

ayohrling commented 8 years ago

Nope, no other sysctl types in the environment.

ghost commented 7 years ago

Hey,

same problem here.

sysctl { 'vm.swappiness':
  ensure  => present,
  value   => '1',
  comment => 'Minimum amount of swapping without disabling it entirely.',
}

Received error: Server Error: no parameter named 'value'

Trying this:

sysctl { 'vm.swappiness':
  ensure  => present,
  val     => '1',
  comment => 'Minimum amount of swapping without disabling it entirely.',
}

Next error: Server Error: no parameter named 'comment'

Next try:

sysctl { 'vm.swappiness':
  ensure  => present,
  val     => '1',
}

No error.

I'm using version 2.2.0.