Hey;

I don't know if this matches the OP's scenario; but, I've been 
contemplating something similar during provisioning.  To provide context, 
as you can probably tell from my other posts, I'm just rolling out puppet 
server after a long absence and even then wasn't exactly an expert.

Like most places, I imagine, I support a reasonably complex environment... 
different data centers, different environments, different zones (dmz, zone 
1, etc).

Quite a bit of my modules that I'm planning on developing will be based on 
custom facts such as "$ facter auth" returns ldap, local, poss others if 
mgmt gets its way, "$ facter dc" returns the name of the datacenter.  

Short version: Those custom facts won't be available to the modules until 
the agent's been run once.  The "solution" as yet untried is similar to 
what Rob Nelson suggested ie: have a "build" class(es) that gets applied 
via the enc that does basic configs, then update the enc with the final 
config.

I'm certainly open to suggestions if there's a better way.

Thanks

Doug O'Leary

On Tuesday, June 7, 2016 at 6:59:02 AM UTC-5, LinuxDan wrote:
>
> Can you provide more detail on exactly what you want to do ?
> A generic how-to request does not work in this instance.
>
> Dan White | [email protected] <javascript:>
> ------------------------------------------------
> “Sometimes I think the surest sign that intelligent life exists elsewhere in 
> the universe is that none of it has tried to contact us.”  (Bill Waterson: 
> Calvin & Hobbes)
>
>
> On Jun 07, 2016, at 06:13 AM, Christoph <[email protected] 
> <javascript:>> wrote:
>
> Hi there,
>
> I want to run a whole puppet class only once when provisioning a system 
> for the first time.
>
> Unfortunately I do not find a way to do this. 
>
> I know how to run commands once using onlyif or unless or creates, but 
> what about running a whole class ?
>
> Thanks
>   Christoph
>
>
> -- 
> 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 [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/81d340b3-3ea9-4c57-8603-e1d5ba03d860%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-users/81d340b3-3ea9-4c57-8603-e1d5ba03d860%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1f1d869e-5c0b-49b4-987e-0dbabe1ace9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to