Re: [Puppet Users] r10k, git and .gitignore

2016-12-14 Thread J.T. Conklin
Robert  writes:
> Now there is just one question mark left*:
> - in some modules, under files, I store some bigger binaries (like
> apache-maven.tgz or a jdk-1.8.tar.gz) for which I'd like to use .
> gitignore files in order to leave these out of the repository, since
> they would consume storage space and are easy to download again so
> they don't need to be tracked. How could these files still be included
> in the files directory after the r10k run?

At my day job we had a few modules that did the same.  We addressed
this by moving the tarballs out of .../files, creating *.rpm and *.deb
packages with fpm (https://github.com/jordansissel/fpm), hosting those
packages in our local package manager (we use JFrog's Artifactory for
development, so it was convenient and available for IT use), and then
using puppet's package resource to manage package installation.

--jtc

-- 
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/87bmwequzr.fsf%40wopr.acorntoolworks.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: r10k, git and .gitignore

2016-12-14 Thread Gavin Williams
Robert

Whilst not directly what you're trying to achieve, we do something similar 
to distribute Java etc by having a separate Puppet fileserver mount called 
'software'. 
Then anything that needs to consume those files can just use that mount 
point... 

Cheers
Gavin 

On Wednesday, 14 December 2016 14:20:24 UTC, Robert wrote:
>
> Hello List,
>
> I finally managed to migrate our Puppet Master from the standard, simple 
> setup to a bit more advanced configuration with r10k and a Bitbucket server.
>
> I converted all our modules into git repositories (one module per repo), 
> stored them in Bitbucket and configured r10k to deploy the whole 
> environment. It works and it's cool!
>
> Now there is just one question mark left*:
> - in some modules, under files, I store some bigger binaries (like 
> apache-maven.tgz or a jdk-1.8.tar.gz) for which I'd like to use .gitignore 
> files in order to leave these out of the repository, since they would 
> consume storage space and are easy to download again so they don't need to 
> be tracked. How could these files still be included in the files directory 
> after the r10k run?
>
> Regards
> Rp
>
> * but I'm sure there will be some more later ;)
>

-- 
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/73a1834a-11ed-42cb-a960-634d5acb307e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] r10k, git and .gitignore

2016-12-14 Thread Robert
Hello List,

I finally managed to migrate our Puppet Master from the standard, simple
setup to a bit more advanced configuration with r10k and a Bitbucket server.

I converted all our modules into git repositories (one module per repo),
stored them in Bitbucket and configured r10k to deploy the whole
environment. It works and it's cool!

Now there is just one question mark left*:
- in some modules, under files, I store some bigger binaries (like
apache-maven.tgz or a jdk-1.8.tar.gz) for which I'd like to use .gitignore
files in order to leave these out of the repository, since they would
consume storage space and are easy to download again so they don't need to
be tracked. How could these files still be included in the files directory
after the r10k run?

Regards
Rp

* but I'm sure there will be some more later ;)

-- 
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/CANwwCtx7m_cH1QJ4u3EEjgDf5vrRHZKCF-gGCMeTrfLZ4rm0NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.