Hi Albert, > On 11. Apr 2020, at 11:27, Albert Shih <albert.s...@obspm.fr> wrote: > > Hi, > > I would like to have your point of view on how you install some software. > > Long time (in IT meaning) most of the software installation meaning run > some rpm, apt, and put a config file.
That process is still considered best practice. > > That's something very easy to do with puppet. > > Currently lot of software need something, IMHO, more easy for the user, but > much more hard to put inside a puppet. For example, installing some nodejs > software means to > > install nodejs > run npm > Don't do that as a Puppet developer. Let the developers build complete software packages with all dependencies built into. e.g. gem bundler directory must be part of the application package. Building packages can easily be done by using fpm (https://github.com/jordansissel/fpm/wiki). No special Debian or RPM knowledge required. > If I try do to the same it's pretty hard to find all packages install by the > last command and put them to a puppet module. And event If I does, I need to > change > the puppet module on each update (and currently for some software that's > mean every week). > > nodejs is just a example, you can take bundle in ruby, pip in python etc. > > Of course for just pip/bundle/etc. I can do something like > > exec { 'install': > command => 'pip/bundle/npm install', > creates => 'some file created by the pip/bundle/npm > } > > but still it's painful because if the pip/bundle/npm failed the exec would > not be execute again, unless you put every file create by the 10000 > dependencies need for every software. > > The worst case for me is those software installed by some > > wget 'URL' | sh > > (Ok I know it's not secure...) but well... The same pattern: let the wget | sudo bash command run on a dev platform or a container and build a package. hth, Martin > > I event find out a script I am unable to run through exec resource (I > didn't find out why). > > So my question : How you manage those kind of installation (beside manually > or using a docker image). > > Regards. > > -- > Albert SHIH > DIO bātiment 15 > Observatoire de Paris > xmpp: j...@obspm.fr > Heure local/Local time: > Sat 11 Apr 2020 11:15:45 AM CEST > > -- > 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/20200411092718.GB2172%40io.chezmoi.fr. -- 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/33B8023C-5EE5-4038-8F88-F6CF83974D7A%40gmail.com.