Declared (and not realized) virtual resource gets applied

asked 2018-11-09 03:23:15 -0600

relttek gravatar image

updated 2018-11-09 12:06:52 -0600

Hi, I'm declaring a virtual php::extension resource in a profile class like this:

   class profile::server::php {
     class { '::php::globals':
       php_version => '5.6',
     }
     -> class { '::php':
       ensure       => 'present',
       manage_repos => true,
       fpm          => true,
       dev          => false,
       composer     => true,
       pear         => true,
       phpunit      => false,
       fpm_pools    => {},
     }

     @php::extension { 'radius': ensure => 'installed' } 
  }

The problem I have is that the virtuel resource declaration is applied instantly even though it is not realized in any other part of my manifests:

==> www.myhost.com: Notice: /Stage[main]/Profile::Server::Php/Php::Extension[radius]/Php::Extension::Install[radius]/Package[php5.6-radius]/ensure: created
==> www.myhost.com: Info: Php::Extension::Install[radius]: Scheduling refresh of Php::Extension::Config[radius]
==> www.myhost.com: Info: Php::Extension::Config[radius]: Scheduling refresh of Php::Config[radius]
==> www.myhost.com: Info: Php::Extension::Config[radius]: Scheduling refresh of Exec[/usr/sbin/phpenmod -v 5.6 -s ALL radius]
==> www.myhost.com: Info: Php::Config[radius]: Scheduling refresh of Php::Config::Setting[/etc/php/5.6/mods-available/radius.ini: extension]
==> www.myhost.com: Info: Php::Config::Setting[/etc/php/5.6/mods-available/radius.ini: extension]: Scheduling refresh of Ini_setting[/etc/php/5.6/mods-available/radius.ini: extension]
...

Environment: Puppet OpenSource 5.5.6, https://github.com/voxpupuli/puppet-p...

Can someone explain what's going on?

-Thanks

edit retag flag offensive close merge delete