No its the otherway around. I need the token to install the package. But I include the class before the token is generated. I works if I do that for instance in my init.pp
Copy code
if ($facts['token_path']) {
include classA::install
include classB::service
}
Class['classA::install']
~> Class['classB::service']