| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
For redhat and debian, we create and manage a $statedir with ownership
set to puppet:puppet. Unfortuntely, we also create a $reportsdir that is
owned by root. This means that other applications, even those in the
puppet group, could not write to this directory. This commits adds the
$reportsdir to both debian and redhat packaging to ensure it is created
with the correct permissions (just at the $statedir is), to ensure a
more consistent experience for users of our packages.
|
|
In debian, we create and manage the $statedir in the postinst of the
puppet-common package. In redhat, $statedir would be created on
service start, and owned by root. This means that other applications,
even those in the puppet group, could not write to this directory. This
commit adds $statedir to the directories created in the redhat package
and sets the user and group ownership to puppet:puppet. This will ensure
a more consistent experience for users of our packages.
|
|
In 6a94700, the rgen 0.7.0 library was added to the vendor directory in puppet,
and as such is no longer an external dependency. This commit removes the rgen
package as a dependency of the puppet rpm and deb packages, so that it is not
installed in addition to the vendored rgen (or worse even installed at a
conflicting version).
Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
|
|
|
|
|
|
Build RPMS properly on Amazon Linux
|
|
point to the improper ruby directory, or
would have improper dependencies.
Use %{amzn} as a rpm macro to determine if the
rpm is being built on an Amazon Linux distro.
If %{amzn} is set, use the Fedora/RHEL7 method
of discovering ruby lib directory. Use the
RHEL 6 init system (sysvinit). Use the RHEL 5
libselinux-ruby dependency.
|
|
No systemd, more recent ruby, libselinux-ruby
|
|
|
|
This adds the example environment for the RPM packages. See the previous
commit for an explanation about why environments are being added to
packages in this manner.
This also moves the README.environment into a shared location so that it
can be kept the same between various packaging systems.
|
|
By requiring hiera in install.rb, we force this as a build dependency of puppet
for any platform that depends on install.rb to build packages. This commit
updates debian and redhat packaging to have a build dependency on hiera to
satisfy this requirement.
Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
|
|
source function library *before* client sysconfig overrides
|
|
We're starting to rely on facts that were released in Facter 1.7.0,
which means that we always need to pull in 1.7 to make those facts
available.
|
|
|
|
previously enabled
|
|
|
|
In order to have the v2 api emit and consume JSON puppet will need to
have access to a json library. This adds it to our dependencies for
debian, redhat, and gem packages. This should be a safe thing to do
since puppet already needs hiera and hiera depends on JSON, so this is
just taking the same dependency that hiera already had and applying it
directly to puppet.
|
|
|
|
|
|
|
|
* stable:
(PUP-1099) Fix incorrect permissions in RPMs
|
|
The RPM spec template uses extremely restrictive permissions for `log`
and `lib` directories. These permissions were being incorrectly applied to
`examples` during packaging. This corrects that problem by resetting
default attributes after restricting `log` and `lib` directories.
|
|
|
|
My client's environment mandates strict umask settings:
- 027 for init scripts
- 077 for normal users
This causes problems when using exec resources or any add-on functions
that exec external scripts/programs.
The fix is relatively simple - run umask in /etc/sysconfig/puppet
and set a more lenient umask for puppet.
However, the /etc/sysconfig/puppet is sourced before the init
function library so any umask changes made in the former are
overridden by any in the latter.
Looking in other init scripts (including the puppetmaster init
script), it is usual for the function library to be sourced at the
start of the init script, ie. before the sysconfig override.
This change simply moves the lines that source the init function
library to the start of the init script.
|
|
2.6 or early to 2.7 or later
|
|
|
|
Due to pull request 1166, in the fedora 17+ transition to systemd, the puppet
agent service was inadvertantly renamed from "puppet" to "puppetagent".
- in specfile, move systemd service and unit file names back to "puppet" from erroneous "puppetagent"
- Add symlink to puppetagent unit file for compatibility with current bug
- Alter package removal actions to deactivate and stop both service names
- rename unit file in source tree to correspond with this
|
|
|
|
|
|
Previously either systemd or systemd-units were BuildRequires on all rpms.
These packages are not available on el5 or el6, which would break rpm building
on those platforms. This commit moves those BuildRequires into an already
existing systemd conditional, so they are only required on systems that support
systemd.
|
|
Prior to this commit, there was no support for Fedora 19. This
commit modifies build_defaults to include F19 in the mocks,
and removes the ruby(abi) requirement. This is because F19 no
longer provides ruby abi.
|
|
* upstream/stable:
(packaging) Move systemd BuildRequires into conditional
|
|
Previously either systemd or systemd-units were BuildRequires on all rpms.
These packages are not available on el5 or el6, which would break rpm building
on those platforms. This commit moves those BuildRequires into an already
existing systemd conditional, so they are only required on systems that support
systemd.
|
|
|
|
Prior to this commit, there was no support for Fedora 19. This
commit modifies build_defaults to include F19 in the mocks,
and removes the ruby(abi) requirement. This is because F19 no
longer provides ruby abi.
|
|
|
|
* upstream/stable:
(Maint) Don't prefetch from /tmp/test
(#19727) Collapse multiple leading slashes
(packaging) Update PUPPETVERSION for 3.2.3-rc1
(packaging) Remove Ubuntu Oneiric from build targets
(#21264) Update rgen dependency to 0.6.5
(packaging) Use the packaging loader for tasks
|
|
Commit ec6b51a8ded9245df9606a57d53674c62bddc11e updated the rgen dependency in
the Gemfile. This commit makes the same dependency explicit in the various
packages (deb, rpm, gem). We pin the version hard at 0.6.5 to prevent potential
breakages with future versions of rgen.
|
|
|
|
Removing patch rundir-perms.patch from RPM spec as it is no longer needed.
The patch was to dynamically change the rundir mode from 01777 to 0755 for Redhat.
The rundir mode was changed to 0755 in lib/puppet/defaults.rb in commit a05d613751335fd16a222bf2e2300e7ccf41dc8a
|
|
|
|
|
|
|
|
|
|
Red Hat/Fedora have been carrying a patch to restart puppet if
resolv.conf or other networking configuration settings are updated via
Network Manager. We should be doing this as well, as it's a good idea.
The patch and problem are described in the following bugs:
https://projects.puppetlabs.com/issues/2776
https://bugzilla.redhat.com/532085
Note this only applies to rpms, and only to builds for EL/Fedora. This
patch/fix won't be applied/installed on any debian varient, sles, mac
etc.
Signed-off-by: Michael Stahnke <stahnma@puppetlabs.com>
|
|
Now that a manpage exists for extlookup2hiera, it needs to be part of the
redhat and debian packaging so it can be laid down correctly for those
packages. This commit adds the manpage to the puppet package on redhat and the
puppet-common package on debian.
|
|
|