[Puppet Users] Re: How to Prevent Both MySQL and Percona From Being Installed?

2014-12-09 Thread Jochen Haeberle
Hi, well at least on my debian, the percona-server package "provides" mysql, a meta-package. Installing Percona sees to it that MySQL (or MariaDB) is purged from the system first. So the way I see it, you have no need to remove mysql from your machine. Just install percona-server, this will see

[Puppet Users] puppetlabs-mysql and Percona

2014-12-09 Thread Jochen Haeberle
Hi, the module puppetlabs-mysql on the forge is tagged with percona, but I don't see a way to have the module install a Percona-Server. The module has providers for MySQL and MariaDB, but not Percona. I tried working with puppetlabs-mysql, installing Percona with a package-resource ending with

Re: [Puppet Users] How to find version of an application on nodes

2018-01-29 Thread Jochen Haeberle
Hi, You could create a simple facter script to check for a installed software you are interested in. The facter scripts are run on all nodes and you can check the result on each machine easily. regards > Am 25.01.2018 um 23:17 schrieb Brandon Blackmoor >: >

Re: [Puppet Users] Unable to solve a require statement

2018-03-03 Thread Jochen Haeberle
Hi Peter, Thanks for the tip. I tried that already, but it results in a Error: Could not find resource 'Package[mysql-client]' in parameter 'require' (file: /etc/puppetlabs/code/environments/production/modules/profile/manifests/software/wordpress.pp, line: 26) on node stretch.localdomain I tr

Re: [Puppet Users] Unable to solve a require statement

2018-03-06 Thread Jochen Haeberle
ure. > > Peter > > From: Jochen Haeberle <mailto:jochen.haebe...@gmail.com> > Sent: 03 March 2018 13:43 > To: puppet-users@googlegroups.com <mailto:puppet-users@googlegroups.com> > Subject: Re: [Puppet Users] Unable to solve a require statement > > Hi Pet

[Puppet Users] python Script with answer file not working

2018-05-16 Thread Jochen Haeberle
Hi, I am trying to install seafile with Puppet. Puppet 5.5.1 on Debian 9. seafile is installed with an interactive shellscript calling a python script. I prepared an answer file, which is interactively working fine, up until where the db password is asked for. The input there is handled differe

[Puppet Users] work on config that does not exist on first run

2018-05-16 Thread Jochen Haeberle
Hi again, as outlined in my last post, I am trying to setup seafile using Puppet 5.5.1 on Debian 9. I am struggling with a script based installation. As a work around, I tried to separate the steps. I want to prepare an answer file for the setup script, run that and adjust the config on the se

Re: [Puppet Users] python Script with answer file not working

2018-05-17 Thread Jochen Haeberle
gt; is executable > > On Wed, May 16, 2018 at 7:50 PM, 程伟 <mailto:chengwei201...@gmail.com>> wrote: > > > 在 2018年5月16日星期三 UTC+8下午8:31:53,Jochen Haeberle写道: > Hi, > > I am trying to install seafile with Puppet. Puppet 5.5.1 on Debian 9. > > seafile is in

Re: [Puppet Users] python Script with answer file not working

2018-05-17 Thread Jochen Haeberle
etup-seafile-mysql.py > is executable > > On Wed, May 16, 2018 at 7:50 PM, 程伟 <mailto:chengwei201...@gmail.com>> wrote: > > > 在 2018年5月16日星期三 UTC+8下午8:31:53,Jochen Haeberle写道: > Hi, > > I am trying to install seafile with Puppet. Puppet 5.5.1 on Debian 9. >

Re: [Puppet Users] python Script with answer file not working

2018-05-17 Thread Jochen Haeberle
Hi John, > Am 17.05.2018 um 15:23 schrieb jcbollinger >: > > If it is available, by far the easiest and most robust way to install almost > any software -- puppet or no puppet -- is via an installation package for > your system's particular package management

[Puppet Users] Problem with adding apt repo source

2019-01-21 Thread Jochen Haeberle
Hi, I am trying to add PHP 7.3 to some of my debian 9 boxes. I am using puppetlabs/apache to setup apache and PHP. I want to add an apt repo (sury.org) with PHP 7.3 to the system. I am using puppetlabs/apt for that I am having problems to first add the repo, run apt update and then setup apach

[Puppet Users] ensure_packets not working

2019-01-28 Thread Jochen Haeberle
Hi, I am using serverless puppet apply on some nodes. I prepared a set of manifests using forge plugins. I developed everything using Vagrant quite fine. Now I put my code via git on a debian 9.7 VM with puppet 6.2 and am getting the following errors: Error: Evaluation Error: Error while evalu

[Puppet Users] Re: ensure_packets not working

2019-01-30 Thread Jochen Haeberle
VMware? Thanks for any hints, regards Jochen Am Dienstag, 29. Januar 2019 00:02:42 UTC+1 schrieb Jochen Haeberle: > > Hi, > > I am using serverless puppet apply on some nodes. I prepared a set of > manifests using forge plugins. I developed everything using Vagrant quite > fine.

Re: [Puppet Users] Re: ensure_packets not working

2019-01-31 Thread Jochen Haeberle
Sorry for the extensive post, this is because I do not have any clue where to look. Thanks, regards Jochen Am Mittwoch, 30. Januar 2019 22:40:26 UTC+1 schrieb Ben Ford: > > Sharing the code that you're working with will make it possible for people > to help solve your prob

Re: [Puppet Users] Re: ensure_packets not working

2019-01-31 Thread Jochen Haeberle
Hi John, thanks for your support! I see your point, especially with the different use of notify. It’s disapointing to hear one should still keep away from ensure_packages, as it greatly helps me to install packages only when needed. This goes mostly for apache modules and php extensions in my

Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-12 Thread Jochen Haeberle
thx for the smart ;-) but when I redeclare the list, I end up keeping two lists of packages. The guy who I am, I will definitely fuck this up regularly… and that’s back to the root of my problem… I would like to somehow reuse the $myPackages structure with different values for $php_version. M

Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-12 Thread Jochen Haeberle
I think you will get sort of „cannot redeclare“… otherwise I agree, it would work like you suggest. But with the solution you propose, I guess I will have one structure for the packages to be installed and another for the ones to be removed. But I want to manage only one list of packages… more

Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-13 Thread Jochen Haeberle
Hi Garrett, thx for the thoughts. I am basically doing as you suggest. Whenever possible I hold to latest versions of package maintainers But Debian often comes with old versions of PHP which poses a problem. So I tend to use sury repositories to install newer but well tested packages of PHP.

Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-13 Thread Jochen Haeberle
Hi all, I solved this with the use of puppet iteration functions: class profile::software::apache ( $php_version= '7.4', $php_remove = ['7.0‘, ‘7.3'], #... ) { # build a hash of PHP Versions with a value of either present or absent # and iterate over it with each $phpInstallHa

Re: [Puppet Users] Newbie wants to know your favourite distro for Puppet Server

2021-06-16 Thread Jochen Haeberle
I am going well with Debian, but that’s what I usually use. I guess I had a hard time running Puppet against Windows only… although it is possible, I think the worlds are so apart that there are some rough edges… you probably are more easy when you know your Puppet from unix and then start to c

Re: [Puppet Users] Manage Amavisd Service

2023-11-26 Thread Jochen Haeberle
> Am 25.11.2023 um 22:16 schrieb 'Kenyon Ralph' via Puppet Users > : > > > This is a problem with amavis, not puppet. You'll need to do systemctl status > amavis, journalctl --pager-end --unit amavis, and look at amavis's own logs > to see why the service is dying or not starting. The servi

Re: [Puppet Users] Manage Amavisd Service

2023-11-28 Thread Jochen Haeberle
> Am 27.11.2023 um 17:54 schrieb 'Kenyon Ralph' via Puppet Users > : > > The service restarts manually fine with service amavis restart > > The question is not why it died but how to get it running again using Puppet. > > Puppet simply runs systemctl start amavis if you have ensure => runnin

Re: [Puppet Users] Manage Amavisd Service

2023-12-01 Thread Jochen Haeberle
e: /Stage[main]/Main/Service[amavis]/ensure: ensure changed 'stopped' to 'running' But it is not running after that. Manually running /usr/sbin/service amavis restart brings up the service fine. Anyone has a tipp what I am doing wrong? thx > Am 28.11.2023 um 12:45 sch

Re: [Puppet Users] Manage Amavisd Service

2023-12-01 Thread Jochen Haeberle
mavis': > ... > start => '/usr/sbin/service amavis restart', > ... > } > > Thanks, > > Nick > > On Fri, Dec 1, 2023 at 11:39 AM Jochen Haeberle <mailto:jochen.haebe...@gmail.com>> wrote: >> now I have a declaration that kicks in when the proble