Hi,
Just did some tests with the suggestions; class oracle_t { include oracle_t::install include oracle_t::sysctl } class oracle_t::install { package { 'oracle-rdbms-server-11gR2-preinstall': ensure => present, } } class oracle_t::sysctl { sysctl { 'kernel.shmall': ensure => present, value => '1073741820', require => Package['oracle-rdbms-server-11gR2-preinstall'], } sysctl { 'kernel.sem': ensure => present, value => '250 32000 100 129', require => Package['oracle-rdbms-server-11gR2-preinstall'], } exec { 'Preserve intermediate sysctl.conf': command => '/bin/cp -pf /etc/sysctl.conf /tmp/sysctl.conf.intermediate', require => Package['oracle-rdbms-server-11gR2-preinstall'], } -> Sysctl<||> } Before; /etc/sysctl.conf -rw-r--r--. 1 root root 1327 Jul 25 10:07 /etc/sysctl.conf kernel.core_uses_pid = 1 kernel.msgmax = 65536 kernel.msgmnb = 65536 kernel.shmall = 4294967296 kernel.shmmax = 68719476736 kernel.sysrq = 1 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.ip_forward = 0 net.ipv4.tcp_syncookies = 1 net.ipv6.conf.all.disable_ipv6 = 1 Puppet run; Info: Applying configuration version '1406274607' Notice: /Stage[main]/Oracle_t::Install/Package[oracle-rdbms-server-11gR2-preinstall]/ensure: created Notice: /Stage[main]/Oracle_t::Sysctl/Exec[Preserve intermediate sysctl.conf]/returns: executed successfully Notice: /Stage[main]/Oracle_t::Sysctl/Sysctl[kernel.shmall]/value: changed configuration value from '1073741824' to '1073741820' and live value from '1073741824' to '1073741820' Notice: /Stage[main]/Oracle_t::Sysctl/Sysctl[kernel.sem]/value: changed configuration value from '250 32000 100 128' to '250 32000 100 129' and live value from '250 32000 100 128' to '250 32000 100 129' Notice: Finished catalog run in 58.47 seconds Diff; diff /etc/sysctl.conf /tmp/sysctl.conf.intermediate 48c48 < kernel.sem = 250 32000 100 129 --- > kernel.sem = 250 32000 100 128 55c55 < kernel.shmall = 1073741820 --- > kernel.shmall = 1073741824 After; /etc/sysctl.conf -rw-r--r--. 1 root root 2679 Jul 25 10:11 /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.core_uses_pid = 1 kernel.msgmax = 65536 kernel.msgmnb = 65536 kernel.sem = 250 32000 100 129 kernel.shmall = 1073741820 kernel.shmmax = 4398046511104 kernel.shmmni = 4096 kernel.sysrq = 1 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.ip_forward = 0 net.ipv4.ip_local_port_range = 9000 65500 net.ipv4.tcp_syncookies = 1 net.ipv6.conf.all.disable_ipv6 = 1 So 'suddenly' this works by adding the exec resource with dependencies to all sysctl resources. Removing the exec resource and changing the package resource to the following package { 'oracle-rdbms-server-11gR2-preinstall': ensure => present, }-> Sysctl<||> also works. Before; /etc/sysctl.conf -rw-r--r--. 1 root root 1327 Jul 25 10:11 /etc/sysctl.conf kernel.core_uses_pid = 1 kernel.msgmax = 65536 kernel.msgmnb = 65536 kernel.shmall = 4294967296 kernel.shmmax = 68719476736 kernel.sysrq = 1 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.ip_forward = 0 net.ipv4.tcp_syncookies = 1 net.ipv6.conf.all.disable_ipv6 = 1 Puppet run; Info: Applying configuration version '1406274883' Notice: /Stage[main]/Oracle_t::Install/Package[oracle-rdbms-server-11gR2-preinstall]/ensure: created Notice: /Stage[main]/Oracle_t::Sysctl/Sysctl[kernel.shmall]/value: changed configuration value from '1073741824' to '1073741820' and live value from '1073741824' to '1073741820' Notice: /Stage[main]/Oracle_t::Sysctl/Sysctl[kernel.sem]/value: changed configuration value from '250 32000 100 128' to '250 32000 100 129' and live value from '250 32000 100 128' to '250 32000 100 129' Notice: Finished catalog run in 63.95 seconds After; /etc/sysctl.conf -rw-r--r--. 1 root root 2679 Jul 25 10:19 /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.core_uses_pid = 1 kernel.msgmax = 65536 kernel.msgmnb = 65536 kernel.sem = 250 32000 100 129 kernel.shmall = 1073741820 kernel.shmmax = 4398046511104 kernel.shmmni = 4096 kernel.sysrq = 1 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.ip_forward = 0 net.ipv4.ip_local_port_range = 9000 65500 net.ipv4.tcp_syncookies = 1 net.ipv6.conf.all.disable_ipv6 = 1 I still don't understand why it works now :( Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/570fa54e-1660-4e13-a986-d8249055c159%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.