[Puppet Users] migrate from puppetmaster 3.4.3 -> 4.8.2

2017-06-04 Thread Anton Gorlov
Hi all. In old puppet master node with puppetmaster 3.4.3 i use mysql to storу data. In [master] section of puppet.conf configured data to access the database: storeconfigs = true dbadapter = mysql dbname = puppetdb dbuser = puppetdbu dbpassword = * dbserver = localhost it works fine. O

Re: [Puppet Users] stop service after install

2017-05-17 Thread Anton Gorlov
;apache2'], # Refresh apache after the listen_port > is changed > } > > package {'nginx': > ensure => installed, > require => Service['apache2'], # Install nginx after apache have > been restarted with another config > } > > > Le 1

Re: [Puppet Users] stop service after install

2017-05-15 Thread Anton Gorlov
15.05.2017 15:16, R.I.Pienaar пишет: > Debian is just by design stupid, thinks starting all services > unconfigured on install is a good idea, suggest you use a OS designed to > be used on servers and not peoples basements. Yes this is true... But I can't change OS at current time. Question why

Re: [Puppet Users] stop service after install

2017-05-15 Thread Anton Gorlov
;apache2'], # Refresh apache after the listen_port > is changed > } > > package {'nginx': > ensure => installed, > require => Service['apache2'], # Install nginx after apache have > been restarted with another config > } > > > Le 1

[Puppet Users] stop service after install

2017-05-13 Thread Anton Gorlov
Hi. I need stop service (apache) after it install from puppet. platform is debian 9 and puppet version is 4.8.2 I my class i wrote: class webpackages { exec { 'apachechk': command => "/bin/systemctl stop apache2;", onlyif => "/bin/grep -c 'Listen 80' /etc/apache2/ports.