Thanks.
I was not trying it that way, but I believe I will. I see where my approach
was borked.
Unfortunately, it means some non-trivial refactoring.
But (and thanks a second time for an opportunity to use this line)
"It's like the chicken said, Launchpad, 'You knew the job was dangerous when you
took it' ! "
“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 Jan 30, 2015, at 03:37 PM, Christopher Wood <christopher_w...@pobox.com>
wrote:
Possibly something like this? If you've already tried this, what was the result?
file { '/etc/sysconfig/network-scripts/ifcfg-eth0':
# stuff here
}
exec { '/sbin/ifup eth0':
refreshonly => true,
subscribe => File['/etc/sysconfig/network-scripts/ifcfg-eth0'],
notify => Service['mysql'],
}
service { 'mysql':
# stuff
}
(Store the ip information in hiera and template your mysql.cnf as well as
ifcfg-eth0 with the same data.)
On Fri, Jan 30, 2015 at 07:40:38PM +0000, Dan White wrote:
Red Hat / CentOS 6.x with Puppet 3.7.x
Creating a new network interface is easy:
Create the /etc/sysconfig/network-scripts/ifcfg-eth(whatever) file and then
refresh the network service.
Now the problem: If I want to run something off that new interface -- like a
MySQL server -- how do I express the dependency to get the interface running
before trying to start the service to run on it ?
I have been unsuccessful in making it happen in a single puppet run.
“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)
--
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/c4116c30-f777-4d27-8e0b-84eec0e14d36%40me.com.
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/20150130203754.GA16888%40iniquitous.heresiarch.ca.
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/48ee71c5-2b6a-4e3b-9693-ba30fc303a14%40me.com.
For more options, visit https://groups.google.com/d/optout.