[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Martin Alfke
Hi, I am working on some types and providers for opennebula network management. I have one type already finished, which creates the network itself. Each network can have multiple address ranges. My idea so far: onevnet { ’testnet’: ensure => present, … } onevnet_addressrange { ‘’: ensure

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Gavin Williams
Martin Autorequire is what you need... Take a look at my glassfish module [1] for an example that should do what you're after... Cheers Gav [1] https://github.com/fatmcgav/fatmcgav-glassfish/blob/develop/lib/puppet/type/jdbcresource.rb#L100-103 -- You received this message because you

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Gavin Williams
Ah, re-reading your post, it looks like you're looking to enforce declaration rather than ordering... You are correct in that autorequire only ensures ordering, not declaration. Unfortunately I can't help with enforcing declaration. Gav -- You received this message because you are subscri

[Puppet Users] Puppet for VM on Windows 7 - confused!

2015-05-10 Thread Joseph Karns
Hello Karen If your goal is to be able to run a all-in-one puppet master and have a client connecting to the master, for testing purposes, the best way to handle this is to use virtualbox with vagrant. I know that is sometimes easier said then done, so I would suggest using Jerald Sheets vagran

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Joseph Karns
Hello Martin: To enforce declaration you should be able to do onevnet_addressrange { '': ensure => present, require => Onevnet['testnet'], } Thanks Joseph Karns -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from