puppet_reprepro.git
6 years agofix missing comma master
Micah Anderson [Wed, 13 Feb 2013 21:06:37 +0000 (16:06 -0500)]
fix missing comma

6 years agoadd customizable incoming source
Micah Anderson [Wed, 13 Feb 2013 21:02:08 +0000 (16:02 -0500)]
add customizable incoming source

6 years agoadd $incoming_source variable to allow for customizing the incoming configuration... add_customizable_incoming
Micah Anderson [Wed, 13 Feb 2013 21:00:59 +0000 (16:00 -0500)]
add $incoming_source variable to allow for customizing the incoming configuration, set to the original by default

6 years agoMerge branch 'add_customizable_distributions' into leap
Micah Anderson [Wed, 13 Feb 2013 20:24:02 +0000 (15:24 -0500)]
Merge branch 'add_customizable_distributions' into leap

Conflicts:
manifests/repository.pp

6 years agoadd possibility to have a customizable distributions template add_customizable_distributions
Micah Anderson [Wed, 13 Feb 2013 20:23:14 +0000 (15:23 -0500)]
add possibility to have a customizable distributions template

6 years agoMerge branch 'add_customizable_index' into leap
Micah Anderson [Wed, 13 Feb 2013 17:07:47 +0000 (12:07 -0500)]
Merge branch 'add_customizable_index' into leap

Conflicts:
manifests/repository.pp

6 years agoadd the ability to have a customized index.html add_customizable_index
Micah Anderson [Wed, 13 Feb 2013 17:06:03 +0000 (12:06 -0500)]
add the ability to have a customized index.html

6 years agoMerge branch 'fix_missingdependency' into leap
Micah Anderson [Wed, 13 Feb 2013 17:01:35 +0000 (12:01 -0500)]
Merge branch 'fix_missingdependency' into leap

6 years agoMerge branch 'add_secringsource' into leap
Micah Anderson [Wed, 13 Feb 2013 17:01:20 +0000 (12:01 -0500)]
Merge branch 'add_secringsource' into leap

Conflicts:
manifests/repository.pp

6 years agoMerge branch 'add_signwith' into leap
Micah Anderson [Wed, 13 Feb 2013 17:00:39 +0000 (12:00 -0500)]
Merge branch 'add_signwith' into leap

Conflicts:
templates/distributions.erb

6 years agoMerge branch 'lint' into leap
Micah Anderson [Wed, 13 Feb 2013 17:00:08 +0000 (12:00 -0500)]
Merge branch 'lint' into leap

Conflicts:
manifests/lighty.pp

6 years agoMerge branch 'master' into leap
Micah Anderson [Wed, 13 Feb 2013 16:58:37 +0000 (11:58 -0500)]
Merge branch 'master' into leap

this brings our master back to before we made some changes. I've split out
those changes into topic branches, and rebased them on top of the current state
of master. I will merge those in next

Conflicts:
manifests/init.pp
templates/distributions.erb

6 years agoadd a service dependency on the reprepro package, without it, the following can occur... fix_missingdependency
Micah Anderson [Wed, 13 Feb 2013 16:47:41 +0000 (11:47 -0500)]
add a service dependency on the reprepro package, without it, the following can occur: err: /Stage[main]/Reprepro/Service[reprepro]: Could not evaluate: Could not find init script for 'reprepro'

6 years agoadd a $secring_source parameter to allow for specifying a file resource source for... add_secringsource
Micah Anderson [Wed, 13 Feb 2013 16:43:07 +0000 (11:43 -0500)]
add a $secring_source parameter to allow for specifying a file resource source for the .gnupg/secring.gpg, setting it to undef by default

6 years agomake Signwith configurable, defaulting to the previous setting (yes) add_signwith
Micah Anderson [Wed, 13 Feb 2013 16:37:46 +0000 (11:37 -0500)]
make Signwith configurable, defaulting to the previous setting (yes)

6 years agolint current state of the module lint
Micah Anderson [Wed, 13 Feb 2013 16:29:47 +0000 (11:29 -0500)]
lint current state of the module

6 years agoMerge remote-tracking branch 'koumbit/multi_repo_support'
Micah Anderson [Wed, 13 Feb 2013 16:07:44 +0000 (11:07 -0500)]
Merge remote-tracking branch 'koumbit/multi_repo_support'

6 years agonow we can use a local index.html template
varac [Sat, 9 Feb 2013 13:18:06 +0000 (14:18 +0100)]
now we can use a local index.html template

6 years agofix typo from previous commit
Micah Anderson [Thu, 7 Feb 2013 02:44:39 +0000 (21:44 -0500)]
fix typo from previous commit

6 years agoadd a $secring_source parameter to allow for specifying a file resource source
Micah Anderson [Thu, 7 Feb 2013 02:36:54 +0000 (21:36 -0500)]
add a $secring_source parameter to allow for specifying a file resource source
for the .gnupg/secring.gpg, setting it to undef by default

6 years agoRevert "add a service dependency on the reprepro package, without it, the following...
Micah Anderson [Wed, 6 Feb 2013 20:02:18 +0000 (15:02 -0500)]
Revert "add a service dependency on the reprepro package, without it, the following can occur:"

This reverts commit 3c35eb649158b6d88e41ba32067df8fab0f78ce5.

I didn't realize the $handle_incoming_with_inotify option

6 years agoadd a service dependency on the reprepro package, without it, the following can occur:
Micah Anderson [Wed, 6 Feb 2013 19:42:04 +0000 (14:42 -0500)]
add a service dependency on the reprepro package, without it, the following can occur:
err: /Stage[main]/Reprepro/Service[reprepro]: Could not evaluate: Could not find init script for 'reprepro'

6 years agomake Signwith optional, defaulting to the previous setting (yes)
Micah Anderson [Wed, 6 Feb 2013 19:30:38 +0000 (14:30 -0500)]
make Signwith optional, defaulting to the previous setting (yes)

6 years agomissed a couple lints in previous commit
Micah Anderson [Wed, 6 Feb 2013 19:28:25 +0000 (14:28 -0500)]
missed a couple lints in previous commit

6 years agolinting the module
Micah Anderson [Wed, 6 Feb 2013 19:19:52 +0000 (14:19 -0500)]
linting the module

6 years agoMerge branch 'master' into leap
Micah Anderson [Wed, 6 Feb 2013 19:07:17 +0000 (14:07 -0500)]
Merge branch 'master' into leap

There were merge conflicts with this merge, but I deliberately
merged with '-s recursive -X theirs' to take the shared modules
version of the changes.

We had some changes that we made, that I will incorporate as
separate commits on top of shared

6 years agoremove descriptions now that policy is looser
Antoine Beaupré [Tue, 8 Jan 2013 16:15:13 +0000 (11:15 -0500)]
remove descriptions now that policy is looser

6 years agoremove distribution codenames
Antoine Beaupré [Tue, 8 Jan 2013 16:14:49 +0000 (11:14 -0500)]
remove distribution codenames

we prefer distribution-agnostic names like stable/testing/unstable by default

6 years agoremove lenny/oldstable
Antoine Beaupré [Tue, 8 Jan 2013 16:13:16 +0000 (11:13 -0500)]
remove lenny/oldstable

6 years agorun the notification daemon as the proper user
Antoine Beaupré [Tue, 8 Jan 2013 00:39:40 +0000 (19:39 -0500)]
run the notification daemon as the proper user

6 years agoRevert "make sure the user belongs to the right group if we haven't created it"
Antoine Beaupré [Tue, 8 Jan 2013 00:36:16 +0000 (19:36 -0500)]
Revert "make sure the user belongs to the right group if we haven't created it"

This reverts commit a33c09dd96f310e997c2365ebfd23860b65e61f4.

6 years agoreprepro shouldn't be able to write to uploaders
Antoine Beaupré [Tue, 8 Jan 2013 00:31:25 +0000 (19:31 -0500)]
reprepro shouldn't be able to write to uploaders

6 years agomake sure the user belongs to the right group if we haven't created it
Antoine Beaupré [Tue, 8 Jan 2013 00:31:14 +0000 (19:31 -0500)]
make sure the user belongs to the right group if we haven't created it

6 years agoreally remove inotify class
Antoine Beaupré [Tue, 8 Jan 2013 00:11:07 +0000 (19:11 -0500)]
really remove inotify class

6 years agoMerge branch 'master' into multi_repo_support
Antoine Beaupré [Tue, 8 Jan 2013 00:03:10 +0000 (19:03 -0500)]
Merge branch 'master' into multi_repo_support

6 years agotypo in the readme
Antoine Beaupré [Tue, 8 Jan 2013 00:02:34 +0000 (19:02 -0500)]
typo in the readme

6 years agomention multi-repository support
Antoine Beaupré [Tue, 8 Jan 2013 00:02:11 +0000 (19:02 -0500)]
mention multi-repository support

6 years agoMerge branch 'master' into multi_repo_support
Antoine Beaupré [Tue, 8 Jan 2013 00:00:48 +0000 (19:00 -0500)]
Merge branch 'master' into multi_repo_support

6 years agodo not mention lenny or distributions
Antoine Beaupré [Tue, 8 Jan 2013 00:00:12 +0000 (19:00 -0500)]
do not mention lenny or distributions

since those may change according to policy, we just refer to stable,
testing and unstable now.

6 years agoget rid of the inotify class as this was failing if it wasn't used
Antoine Beaupré [Mon, 7 Jan 2013 23:35:13 +0000 (18:35 -0500)]
get rid of the inotify class as this was failing if it wasn't used

6 years agomake the user/group customizable per repository
Antoine Beaupré [Mon, 7 Jan 2013 23:04:27 +0000 (18:04 -0500)]
make the user/group customizable per repository

6 years agosplit all resources in their own files
Antoine Beaupré [Mon, 7 Jan 2013 23:01:09 +0000 (18:01 -0500)]
split all resources in their own files

6 years agomove parametrized class elements into a define to support multiple repositories
Antoine Beaupré [Mon, 7 Jan 2013 22:58:06 +0000 (17:58 -0500)]
move parametrized class elements into a define to support multiple repositories

6 years agoexplain how to upgrade from previous versions
Antoine Beaupré [Mon, 7 Jan 2013 23:07:17 +0000 (18:07 -0500)]
explain how to upgrade from previous versions

6 years agomake the key script support multiple repositories
Antoine Beaupré [Mon, 7 Jan 2013 22:57:39 +0000 (17:57 -0500)]
make the key script support multiple repositories

6 years agokill last remains of etch
Antoine Beaupré [Mon, 7 Jan 2013 22:33:01 +0000 (17:33 -0500)]
kill last remains of etch

6 years agoRemoving files/uploaders-sid
Silvio Rhatto [Fri, 1 Jul 2011 00:59:07 +0000 (21:59 -0300)]
Removing files/uploaders-sid

6 years agomake architecture list configurable
Antoine Beaupré [Mon, 7 Jan 2013 22:16:23 +0000 (17:16 -0500)]
make architecture list configurable

Closes: #3765

6 years agofix syntax error under 2.6
Antoine Beaupré [Mon, 7 Jan 2013 21:39:15 +0000 (16:39 -0500)]
fix syntax error under 2.6

6 years agoMerge remote branch 'intrigeri/master' into dev
Antoine Beaupré [Mon, 7 Jan 2013 21:03:01 +0000 (16:03 -0500)]
Merge remote branch 'intrigeri/master' into dev

7 years agoA POSIX shell is enough to run export-key
Tails developers [Sat, 3 Nov 2012 17:34:23 +0000 (18:34 +0100)]
A POSIX shell is enough to run export-key

7 years agoMake export-key fail if any command fails
Tails developers [Sat, 3 Nov 2012 17:34:08 +0000 (18:34 +0100)]
Make export-key fail if any command fails

7 years agoCreate temp file in the same directory as the file it'll replace to get an atomic...
Tails developers [Sat, 3 Nov 2012 17:31:28 +0000 (18:31 +0100)]
Create temp file in the same directory as the file it'll replace to get an atomic update in export-key

7 years agoFail-close if multiple-keys are present by quoting KEY in export-key
Tails developers [Sat, 3 Nov 2012 17:30:39 +0000 (18:30 +0100)]
Fail-close if multiple-keys are present by quoting KEY in export-key

7 years agoAlways remove tempfile if something wrong happen in export-key
Tails developers [Sat, 3 Nov 2012 17:28:43 +0000 (18:28 +0100)]
Always remove tempfile if something wrong happen in export-key

7 years agoUse uppercase for global shell variables
Tails developers [Sat, 3 Nov 2012 17:28:07 +0000 (18:28 +0100)]
Use uppercase for global shell variables

7 years agoProperly quote @basedir paths in export-key
Tails developers [Sat, 3 Nov 2012 17:27:22 +0000 (18:27 +0100)]
Properly quote @basedir paths in export-key

7 years agoUse Debian style indentation in export-key
Tails developers [Sat, 3 Nov 2012 17:26:31 +0000 (18:26 +0100)]
Use Debian style indentation in export-key

7 years agoTest for 'something' instead of 'not nothing' in export-key
Tails developers [Sat, 3 Nov 2012 17:25:01 +0000 (18:25 +0100)]
Test for 'something' instead of 'not nothing' in export-key

7 years agoUse new-style shell expansion in export-key
Tails developers [Sat, 3 Nov 2012 17:23:41 +0000 (18:23 +0100)]
Use new-style shell expansion in export-key

7 years agoAdd support for status in initscript
Tails developers [Sat, 3 Nov 2012 17:21:34 +0000 (18:21 +0100)]
Add support for status in initscript

7 years agoAdd a default value for $USER in initscript
Tails developers [Sat, 3 Nov 2012 17:18:45 +0000 (18:18 +0100)]
Add a default value for $USER in initscript

Relying on the external shell environment can lead to issue hard to understand.
We explicitly set USER to root by default, and let admins override it in the
default file.

7 years agoAdjust whitespaces in initscripts
Tails developers [Sat, 3 Nov 2012 17:17:47 +0000 (18:17 +0100)]
Adjust whitespaces in initscripts

7 years agoRemove useless boilerplate from skeleton initscript
Tails developers [Sat, 3 Nov 2012 17:15:56 +0000 (18:15 +0100)]
Remove useless boilerplate from skeleton initscript

7 years agoImprove descriptions in initscript
Tails developers [Sat, 3 Nov 2012 17:15:08 +0000 (18:15 +0100)]
Improve descriptions in initscript

7 years agoFix boot dependencies in initscript
Tails developers [Sat, 3 Nov 2012 17:14:16 +0000 (18:14 +0100)]
Fix boot dependencies in initscript

inoticoming lies in /usr/bin so it needs $remote_fs and not $local_fs.

7 years agoHave inoticoming perform an initial search of the directory
Tails developers [Tue, 23 Oct 2012 16:21:36 +0000 (18:21 +0200)]
Have inoticoming perform an initial search of the directory

If inoticoming is not started while new packages are added to the incoming
directory, those packages would not have been processed straight away.

So, instead of waiting for a subsequent package upload, let's just have
inoticoming perform an initial run on startup.

7 years agoEnsure that 'ensure' is the first attribute
Tails developers [Sat, 3 Nov 2012 17:06:44 +0000 (18:06 +0100)]
Ensure that 'ensure' is the first attribute

See Style Guide:
<http://docs.puppetlabs.com/guides/style_guide.html#attribute-ordering>

7 years agoGroup related exec and file resources
Tails developers [Tue, 23 Oct 2012 16:00:04 +0000 (18:00 +0200)]
Group related exec and file resources

7 years agoDefine each file and exec resources separately
Tails developers [Tue, 23 Oct 2012 15:58:55 +0000 (17:58 +0200)]
Define each file and exec resources separately

See Style Guide:
<http://docs.puppetlabs.com/guides/style_guide.html#compression>

7 years agoUse recommanded style for file modes
Tails developers [Tue, 23 Oct 2012 15:23:48 +0000 (17:23 +0200)]
Use recommanded style for file modes

See Style Guide:
<http://docs.puppetlabs.com/guides/style_guide.html#file-modes>

7 years agoHave Puppet check mandatory class parameter is passed, rather than doing it by hand.
intrigeri [Sat, 3 Nov 2012 16:53:50 +0000 (17:53 +0100)]
Have Puppet check mandatory class parameter is passed, rather than doing it by hand.

7 years agoRemove useless $server from file sources
Tails developers [Tue, 23 Oct 2012 16:55:12 +0000 (18:55 +0200)]
Remove useless $server from file sources

7 years agoAdd warnings for file that are managed by Puppet
Tails developers [Tue, 23 Oct 2012 16:37:23 +0000 (18:37 +0200)]
Add warnings for file that are managed by Puppet

7 years agoProcessing the incoming queue requires the directory to be there
Tails developers [Tue, 23 Oct 2012 16:32:47 +0000 (18:32 +0200)]
Processing the incoming queue requires the directory to be there

7 years agoReduce duplication by using defaults for File resources
Tails developers [Tue, 23 Oct 2012 15:22:24 +0000 (17:22 +0200)]
Reduce duplication by using defaults for File resources

7 years agoConvert the reprepro class to parametrized format
Tails developers [Tue, 23 Oct 2012 13:03:54 +0000 (15:03 +0200)]
Convert the reprepro class to parametrized format

We remove the deprecated dynamic lookup for variables and now have them as
class parameters.

The reprepro::cron and reprepro::inoticoming classes have been integrated
in the reprepro class as two boolean arguments. As these are not mutually
exclusive, it is cleaner that way.

We add a test manifest for the reprepro class along the way.

7 years agoDon't setup init script manually
Tails developers [Tue, 23 Oct 2012 14:14:31 +0000 (16:14 +0200)]
Don't setup init script manually

There is no need to exec `update-rc.d` manually, the service definition will
take care of running it!

7 years agoSplit reprepro::cron and reprepro::inotify to separate files
Tails developers [Tue, 23 Oct 2012 14:03:28 +0000 (16:03 +0200)]
Split reprepro::cron and reprepro::inotify to separate files

7 years agoDo not enforce permissions when manage_incoming_conf is false
Tails developers [Tue, 23 Oct 2012 16:44:27 +0000 (18:44 +0200)]
Do not enforce permissions when manage_incoming_conf is false

7 years agoLeave more control to users when conf/distributions is not managed
Tails developers [Tue, 23 Oct 2012 16:01:46 +0000 (18:01 +0200)]
Leave more control to users when conf/distributions is not managed

If we do not manage conf/distributions, we should not call reprepro ourselves,
the caller may change its content at other times than Puppet.

We also should not enforce its permissions.

7 years agoRefer to variables using Ruby instance variables in templates
Tails developers [Tue, 23 Oct 2012 13:08:45 +0000 (15:08 +0200)]
Refer to variables using Ruby instance variables in templates

This is the recommended way, as it prevents clashes with Ruby function names.

7 years agoDrop support for the venerable etch
Tails developers [Tue, 23 Oct 2012 12:56:12 +0000 (14:56 +0200)]
Drop support for the venerable etch

7 years agoMake basedir permissions configurable with $reprepro_basedir_mode.
intrigeri [Tue, 23 Oct 2012 18:15:14 +0000 (20:15 +0200)]
Make basedir permissions configurable with $reprepro_basedir_mode.

When one wants to use the reprepro login to upload packages to incoming, too lax
permissions on its $HOME make sshd unhappy, and one wants to fix that.

7 years agochange 'uploaders-sid' in sid distribution to be a standard 'uploaders'
Micah Anderson [Wed, 15 Aug 2012 21:26:40 +0000 (17:26 -0400)]
change 'uploaders-sid' in sid distribution to be a standard 'uploaders'

7 years agoadd testing/wheezy distribution to distributions.erb
Micah Anderson [Wed, 15 Aug 2012 21:09:39 +0000 (17:09 -0400)]
add testing/wheezy distribution to distributions.erb

7 years agoremove another koumbit hard-coded piece
Micah Anderson [Wed, 15 Aug 2012 21:09:19 +0000 (17:09 -0400)]
remove another koumbit hard-coded piece

7 years agoremove etch from distributions.erb
Micah Anderson [Wed, 15 Aug 2012 21:08:52 +0000 (17:08 -0400)]
remove etch from distributions.erb

7 years agouse in distributions.erb
varac [Thu, 9 Aug 2012 11:10:59 +0000 (13:10 +0200)]
use  in distributions.erb

7 years agoremoved hardcoded koumbit stuff from distributions.erb
varac [Wed, 8 Aug 2012 16:03:17 +0000 (18:03 +0200)]
removed hardcoded koumbit stuff from distributions.erb

7 years agoMerge branch 'export-no-need-for-refreshonly'
intrigeri [Mon, 2 Jul 2012 16:24:53 +0000 (18:24 +0200)]
Merge branch 'export-no-need-for-refreshonly'

7 years agoDrop useless refreshonly for resource that already has a "create" parameter.
intrigeri [Mon, 2 Jul 2012 16:22:08 +0000 (18:22 +0200)]
Drop useless refreshonly for resource that already has a "create" parameter.

In production, this does not change anything worth noting.

But when developing, being able to delete the exported pubkey and re-run Puppet
is useful.

7 years agoMerge branch 'improve-pubkey-export'
intrigeri [Mon, 2 Jul 2012 16:17:18 +0000 (18:17 +0200)]
Merge branch 'improve-pubkey-export'

7 years agoMake sure the exported key is owned by reprepro:reprepro.
intrigeri [Mon, 2 Jul 2012 16:16:25 +0000 (18:16 +0200)]
Make sure the exported key is owned by reprepro:reprepro.

7 years agoMerge branch 'improve-pubkey-export'
intrigeri [Mon, 2 Jul 2012 16:13:50 +0000 (18:13 +0200)]
Merge branch 'improve-pubkey-export'

7 years agoMake sure the exported public key is world-readable.
intrigeri [Mon, 2 Jul 2012 16:12:28 +0000 (18:12 +0200)]
Make sure the exported public key is world-readable.

7 years agoUse a temporary file + atomic move when exporting the repository public key.
intrigeri [Mon, 2 Jul 2012 16:05:04 +0000 (18:05 +0200)]
Use a temporary file + atomic move when exporting the repository public key.

7 years agoAllow opting-out of conf/incoming's and conf/distributions' content management.
intrigeri [Sat, 4 Feb 2012 14:27:04 +0000 (15:27 +0100)]
Allow opting-out of conf/incoming's and conf/distributions' content management.

Sometimes it's much simpler to manage these files outside of Puppet.

7 years agoInstall inoticoming from reprepro::inotify only.
intrigeri [Tue, 31 Jan 2012 17:10:16 +0000 (18:10 +0100)]
Install inoticoming from reprepro::inotify only.

7 years agoAdd $reprepro_incoming_mode variable.
intrigeri [Tue, 31 Jan 2012 16:29:12 +0000 (17:29 +0100)]
Add $reprepro_incoming_mode variable.

This makes permissions of the reprepro incoming directory configurable.