114 Commits

Author SHA256 Message Date
Klaus Kämpf
f08569b1f2 Accepting request 1321766 from home:aeszter:branches:systemsmanagement
- fix build for Leap 16.0
  * replace outdated %patchN notation
  * add shadow BuildRequires (for usermod)

OBS-URL: https://build.opensuse.org/request/show/1321766
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=200
2025-12-09 13:27:43 +00:00
Klaus Kämpf
654a9063b9 Accepting request 1065676 from home:kwk:branches:systemsmanagement
- Update to version 3.21.0:
  * Added cf-support utility for generating support information
    (ENT-9037)
  * Adjusted cf-check and package module code for empty updates list
    (ENT-9050)
  * '$(this.promiser)' can now be used in 'files' promise attributes
    'if', 'ifvarclass' and 'unless' (CFE-2262, ENT-7008)
  * Fixed storage promise for nfs on MacOS (CFE-4093)
  * Fixed definition of _low_ldt class from cf-monitord (CFE-4022)
  * Insertion of contents of a file with blank lines into another
    file with blank lines no longer results in mixed content (ENT-8788)
  * Added suggestion to use a negative lookahead when non-convergent edits 
    are attempted (CFE-192)
  * Unresolved function calls that return scalar values are now
    considered OK for constraints expecting strings during syntax
    check (CFE-4094)
  * cf-monitord now honors monitorfacility in body monitor control
    (ENT-4492)
  * cf-serverd now periodically reloads its policy if it contains
    unresolved variables (e.g. $(sys.policy_hub) in 'allowconnect'). (ENT-8456)
  * cf-serverd now starts in the network-online.target on systemd-based
    systems (ENT-8456)
  * edit_line bundles can now use the new $(edit.empty_before_use)
    variable mirroring the value of edit_defaults=>empty_before_use
    of the related files promise (ENT-5866)
  * Package modules with unresolved variables in their names are
    now skipped in package queries (ENT-9377)
  * Removed unsupported name_connect capability for udp_socket class
    (ENT-8824)
  * 'meta' attribute can now be used in custom promises (CFE-3440)
  * Custom promise modules can now support the 'action_policy'
    feature allowing promises of their custom types to be used
    in dry-run and simulation modes and in combination with
    'action_policy => "warn"'. (CFE-3433)
  * Use of custom promise modules that don't fully specify protocol
    now results in warning (CFE-3433)
  * Warnings are logged if levels of log messages from custom promise
    modules don't match results of their related promises (CFE-3433)
  * Adjusted SELinux policy for RHEL 9 (ENT-8824)
  * Fixed SELinux policy to allow hub to send emails (ENT-9557, ENT-9473)
  * SELinux no longer breaks SQL queries with large result sets on
    RHEL 8 hubs (ENT-9496)
  * Added SELinux LDAP port access for Mission Portal (ENT-9694)
  * Allowed ciphers are now properly split into TLS 1.3 cipher suites
    and ciphers used for TLS 1.2 and older (ENT-9018)
  * Fixed git_cfbs_deploy_refspec in masterfiles_stage leaving temp dir
- Update to version 3.20.0:
  * 'rxdirs' now defaults to "false". This means that the read
    permission bit no longer implies execute bit for directories,
    by default.
    Permission bits will be exactly as specified. To restore the
    old behavior you can still enable 'rxdirs' explicitly. (CFE-951)
  * 'N' or 'Ns' signal specs can now be used to sleep  between signals
    sent by 'processes' promises (CFE-2207, ENT-5899)
  * Directories named .no-distrib are no longer copied from policy
    server (in bootstrap/failsafe) (ENT-8079)
  * Files promises using content attribute or template method now
    create files by default unless create => "false" is specified.
    (CFE-3955, CFE-3916)
  * template_method mustache and inline_mustache now create file
    in promiser, if template rendering was successfull and file
    does not exist. (ENT-4792)
  * Added support for use of custom bodies in custom promise types
    (CFE-3574)
  * Custom promise modules now never get promise data with unresolved
    variables (CFE-3434)
  * Custom promises now use standard promise locking and support
    ifelapsed (CFE-3434)
  * Enable comment-attribute for custom promise types (CFE-3432)
  * cf-secret encrypt now encrypts for localhost if no key or host is
    specified (CFE-3874)
  * CFEngine now builds with OpenSSL 3 (ENT-8355)
  * CFEngine now requires OpenSSL 1.0.0 or newer (ENT-8355)
  * Moved Skipping loading of duplicate policy file messages from
    VERBOSE to DEBUG (CFE-3934)
  * CFEngine processes now try to use getent if the builtin user/group
    info lookup fails (CFE-3937)
  * No longer possible to undefine reserved hard classes (ENT-7718)
  * Unspecified 'rxdirs' now produces a warning (CFE-951)
  * Fixed wrong use of log level in users promises log messages
    (CFE-3906)
  * Fixed default for ignore_missing_bundles and ignore_missing_inputs
    The issue here was that these attributes should default to false,
    but when they are assigned with an unresolved variable, they
    would default to true. (ENT-8430)
  * Added protocol 3 (cookie) to syntax description (ENT-8560)
  * Moved errors from data_sysctlvalues from inform to verbose
    (CFE-3818)
  * Fixed inconsistencies with methods promises and missing bundles

OBS-URL: https://build.opensuse.org/request/show/1065676
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=197
2023-02-14 08:20:18 +00:00
Klaus Kämpf
c64bde1765 Accepting request 957421 from home:susnux:branches:systemsmanagement
Update to version 3.19.0

Fix CVE-2021-38379 - Publicly available exported reports
Fix CVE-2021-36756 - Certificate not checked in Federated Reporting

OBS-URL: https://build.opensuse.org/request/show/957421
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=196
2022-02-25 07:51:20 +00:00
Klaus Kämpf
ac44f15e88 Accepting request 914367 from home:jsegitz:branches:systemdhardening:systemsmanagement
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort

OBS-URL: https://build.opensuse.org/request/show/914367
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=195
2021-08-30 14:38:45 +00:00
Klaus Kämpf
ee21fea05e Accepting request 886387 from home:susnux:branches:systemsmanagement
- Fixed SPEC file: Replaced broken URL with current upstream
- Update to 3.17.0 (as 3.16 already was non LTS)

OBS-URL: https://build.opensuse.org/request/show/886387
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=193
2021-04-19 11:59:19 +00:00
Klaus Kämpf
2635dd738b - drop cfengine-doc subpackage in favor of cfengine-documentation
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=190
2020-09-23 08:38:15 +00:00
Klaus Kämpf
d420dec1f5 - update to 3.16.0
- Added 'cf-secret' binary for host-specific encryption (CFE-2613)
  - 'cf-check diagnose --test-write' can now be used to test writing
    into LMDB files (ENT-4484)
  - 'if' constraint now works in combination with class contexts
    (CFE-2615)
  - Added $(sys.cf_version_release) variable (ENT-5348)
  - Added new macros to parser: else, maximum_version, between_versions,
    before_version, at_version and after_version. Version macros now
    accept single digits (CFE-3198)
  - Added cf-postgres requirement to cf-apache and cf-hub systemd units
    (ENT-5125)
  - Added files promise content attribute (CFE-3276)
  - Added string_trim() policy function (CFE-3074)
  - Added warning if CSV parser parses nothing from non-empty file
    (CFE-3256)
  - All changes made by 'files' promises are now reported. Also,
    directory and file creations are now properly reported as 'info'
    messages. And failures in edit_xml result in promises marked as
    failed not interrupted. Purged dirs and files are reported as
    repaired (ENT-5291, CFE-3260)
  - Bootstrap to loopback interface is now allowed, with a warning
    (CFE-3304)
  - Client initiated reporting was fixed on RHEL 8.1 (ENT-5415)
  - Fixed rare crashing bug when parsing zombie entries in ps output.
    The problem was only ever observed on AIX, but could theoretically happen
    on any platform depending on exact libc behavior. (ENT-5329)
  - Fixed an issue causing duplicate entries in sys.interfaces, and
    sys.hardware. (CFE-3046)
  - Fixed ifelse() to return fallback in case of unresolved variables

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=188
2020-09-22 12:26:19 +00:00
Lars Vogdt
e0e9bc715e OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=187 2020-07-30 09:38:23 +00:00
Lars Vogdt
8b1458dabe Accepting request 823183 from home:kukuk:branches:systemsmanagement
- Fix version format for suse_version (SuSEfirewall2 check)

OBS-URL: https://build.opensuse.org/request/show/823183
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=186
2020-07-30 09:14:51 +00:00
Klaus Kämpf
777582b093 - rename 0002-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch
to 0001-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch
  0003-Reduce-string-truncation-warnings.patch
  to 0002-Reduce-string-truncation-warnings.patch
  0004-make-home-dir-for-tests.patch
  to 0003-make-home-dir-for-tests.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=185
2020-06-12 14:33:32 +00:00
Klaus Kämpf
1deaa91aa6 Accepting request 772199 from home:StefanBruens:branches:systemsmanagement
- Drop fakeroot build dependency, unused.
- Drop python build dependency, determine-version.py is not used.
- Always build with systemd, distribution versions without
  systemd are no longer supported by CFEngine.
- Drop RHEL5/SLE11 only remove-am_subst_notmake.patch
- Cleanup spec file, remove obsolete conditionals.
- Make doc and examples packages noarch.

OBS-URL: https://build.opensuse.org/request/show/772199
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=184
2020-02-11 07:09:36 +00:00
Klaus Kämpf
1171ffc73b Accepting request 769555 from home:dimstar:Factory
Shortcut through -mini

OBS-URL: https://build.opensuse.org/request/show/769555
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=183
2020-02-03 12:20:07 +00:00
Klaus Kämpf
c5bd22ea4b - Update to 3.14.0.2 (upstream 3.14.0-2)
see https://github.com/cfengine/core/blob/3.14.0-2/ChangeLog

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=182
2019-12-16 13:49:02 +00:00
Klaus Kämpf
d61e290e3f Accepting request 717870 from home:mgerstner:branches:systemsmanagement
- removal of SuSEfirewall2 service, since SuSEfirewall2 has been replaced by
  firewalld, see [1].
  [1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html

OBS-URL: https://build.opensuse.org/request/show/717870
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=180
2019-07-24 13:29:45 +00:00
6c960117c1 Accepting request 682853 from home:adamm:branches:systemsmanagement
- Update to 3.12.1 (LTS)
  - Added a new binary: cf-check
    + Corrupt local databases (LMDB) continues to be a problem.
    cf-check will be used to diagnose and remediate problems
    with corrupt databases. It is a standalone binary, which
    doesn't evaluate policy or use the local databases, thus
    it can be used in situations where the other binaries
    like cf-agent would hang.
    + cf-check replaces our lmdb database dumper, lmdump.
    + `cf-check lmdump` or symlinking / renaming it to lmdump
    will make cf-check have the exact same behavior as lmdump.
    cf-check will include much more functionality in the future
    and some of the code will be added to other binaries,
    for example to do health checks of databases on startup.
    Ticket: (ENT-4064)
  - Class names set by module protocol are automatically canonified
    (CFE-2877, CFE-2887)
  - Correct log level for data_readstringarray* (CFE-2922)
  - Eliminated error messages caused by attempting to kill expired processes
    (CFE-2824)
  - Fix cf-runalerts systemd unit conditions so the service will run
    (ENT-3929)
  - Fix the off-by-one error in cf-runagent background process spawning
    (CFE-2873)
  - Fixed a memory leak which occurred when reloading RSA keys from disk
  - Fixed a memory leak which occurred while loading augments files
    (CFE-2913)
  - Fixed an issue while parsing ps output on AIX (ENT-4295)
  - Fixed an issue with splay time in cf-execd (CFE-2931)
  - Fixed error handling and memory leak in cf-key (CFE-2918)

OBS-URL: https://build.opensuse.org/request/show/682853
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=178
2019-03-15 09:35:55 +00:00
Klaus Kämpf
90b6f634f4 Accepting request 625201 from home:aeszter:branches:systemsmanagement
- Fix path to executables for sys variables (BOO #1099946)

OBS-URL: https://build.opensuse.org/request/show/625201
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=176
2018-07-26 15:24:04 +00:00
Klaus Kämpf
81ecd2ceea - Update to 3.12.0 (LTS)
New Features:
  - Add a --key-type option to specify RSA key size to cf-key
  - New hash_to_int policy function (CFE-2733)
  - Issue a warning on ignored locking attributes (CFE-2748)
  - Add IPv6 hard classes with the "ipv6_" prefix (CFE-2310)
  - Introduce "missing_ok" attribute in body copy_from
    This allows to ignore missing sources in file copy operations
    (CFE-2365)
  - Enable Xen hypervisor detection on all x86 platforms (CFE-2203)
  - Add sys.policy_entry variables (CFE-2572)
  - Added inline_mustache template method (CFE-1846)
  - New component cf-net (cf-net is a CLI for the CFEngine network
    protocol, useful for debugging, testing etc) and accompanying
    policy variable sys.cf_net containing path to cf-net binary
  - Added --log-level option to all components
    This allows you to specify any log level (info, verbose, debug
    etc.).
    It is also less strict, allowing different spelling. As an example,
    --log-level i, --log-level INFO, --log-level inform are all the same.
  - Added special behavior for bundles named __main__
    If the bundle is defined in the entry policy it will be defined as
    main.
    If the bundle is defined elsewhere, it will be removed.
    This makes it easy to make importable library policy which can also
    be executed directly.
- See https://github.com/cfengine/core/blob/3.12.x/ChangeLog for other
  changes and bug fixes
- drop 0003-CFE-2629-Openssl-1.1-compatibility.patch (upstream)
  drop reproducible.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=174
2018-07-03 08:05:49 +00:00
93ca92cda8 - Use %license instead of %doc
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=172
2018-06-19 11:00:02 +00:00
d4a73535e2 Accepting request 617693 from home:aeszter:branches:systemsmanagement
Fix path in unit files (BOO #1098184).

OBS-URL: https://build.opensuse.org/request/show/617693
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=171
2018-06-19 10:58:23 +00:00
Klaus Kämpf
7af5a9b007 - add 0003-CFE-2629-Openssl-1.1-compatibility.patch
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=169
2017-12-20 08:03:37 +00:00
Klaus Kämpf
2c85630a50 - add 0003-Merge-pull-request-2916-from-jimis-openssl_1_1.patch
for openssl-1.1.0 compatibility

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=165
2017-12-04 11:37:10 +00:00
Klaus Kämpf
26b6dc96bf - Update to 3.11.0
New Features:
  - allow function calls in promiser using universal "with"
    attribute. (CFE-1092)
  - add example of with attribute (CFE-1092)
  - Detect Amazon Linux and set "AmazonLinux" hard class and
    sys.flavour variable.
  - New sysctlvalue() and data_sysctlvalues() functions from /proc/sys
    (CFE-2513)
  - readdata() also auto-detects .yml files as YAML
  - Added support for ENV and CSV file parsing (CFE-1881)
  - Added vars and classes for CoreOS (ENT-3043)
  - cf-agent: implement --show-evaluated-vars and
    --show-evaluated-classes
  - Support for custom ports and host names as policy hub (CFE-953)
  - cf-promises: allows --show-vars and --show-classes to take an
    optional filter
  - Added a new tool: cf-net. cf-net is a CLI for the CFEngine
    network protocol, useful for debugging, testing etc.
    (CFE-2493)
  - New policy variable: sys.cf_net contains path to cf-net binary
  - Read /etc/os-release into sys.os_release (CFE-1881)
- Full changelog at https://github.com/cfengine/core/blob/3.11.0/ChangeLog

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=164
2017-08-11 17:49:23 +00:00
4954ff9aab Accepting request 507666 from home:bmwiedemann:branches:systemsmanagement
Use gzip -n to not add timestamps to .gz header
Add reproducible.patch to override man page date
to make package build fully reproducible

OBS-URL: https://build.opensuse.org/request/show/507666
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=162
2017-07-03 09:56:35 +00:00
b201d100d6 Accepting request 506721 from home:jengelh:branches:systemsmanagement
- Reword description to have less marketing speak.
- Remove two unnecessary ldconfig calls.

OBS-URL: https://build.opensuse.org/request/show/506721
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=160
2017-06-28 11:38:23 +00:00
Klaus Kämpf
104e641d1c - Update to 3.10.1
New features/additions:
  - "make tar-package" should create a tarball with the contents of
    "make install" (ENT-3041)
  
  Bugfixes:
  - Fix rare output truncation on Solaris 10/11 (CFE-2527)
  - Change: Don't error during dry run for proposed execution.
    (CFE-2561)
  - prevent LMDB assertion on AIX by ensuring nested DB calls are
    not occuring during signal handler cleanup (CFE-1996)
  - Detect Amazon Linux and set "AmazonLinux" hard class and
    sys.flavour variable.
  - Fix "lastseenexpireafter" 32-bit signed int overflow.
  - Add missing pcre build flags to cf-key (CFE-2525)
  - Fix a bug which could cause cf-execd to believe there was
    an error when sending the email report, when there really wasn't.
  - cf-serverd: Auto configure max open files ulimit according to
    maxconnections (CFE-2575)
  - Added vars and classes for CoreOS (ENT-3043)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=156
2017-03-31 07:43:07 +00:00
Klaus Kämpf
dd4c42da14 Accepting request 454270 from home:bmwiedemann:branches:systemsmanagement
Fix build with rpm-4.13

OBS-URL: https://build.opensuse.org/request/show/454270
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=154
2017-02-03 09:23:39 +00:00
c3b18d145e Add missing patch info to changes, so it can be submitted to
Factory.

- make_home_dir_for_tests.patch: Make cfengine home directory to
  avoid spamming logfiles during unit tests (bnc#1016848)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=152
2016-12-31 19:17:13 +00:00
Klaus Kämpf
1b185a162e Accepting request 448292 from home:adamm:branches:systemsmanagement
- Make cfengine home directory to avoid spamming logfiles during unit tests (bnc#1016848)

OBS-URL: https://build.opensuse.org/request/show/448292
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=151
2016-12-31 09:51:36 +00:00
Klaus Kämpf
de6d3cf356 - Update to 3.10.0 (final) - LTS until Dec 2019
See https://cfengine.com/company/blog-detail/cfengine-3-10-lts-released/
  and https://github.com/cfengine/core/blob/3.10.0/ChangeLog
  for full changelog.
- rename 0001-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch
  to     0002-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch
- drop cfengine-3.10.0b1.patch, upstream

- Update to 3.10.0 (beta1) - LTS until Dec 2019
  See https://github.com/cfengine/core/blob/3.10.0b1/ChangeLog
  for full ChangeLog

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=149
2016-12-29 09:56:49 +00:00
Klaus Kämpf
b98e1ba543 - Add cfengine-3.10.0b1.patch to find libacl during build
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=147
2016-11-23 11:06:35 +00:00
Klaus Kämpf
e641764b40 - Update to 3.10.0 (beta1) - LTS until Dec 2019
See https://github.com/cfengine/core/blob/3.10.0b1/ChangeLog
  for full ChangeLog
  New features/additions:
  - All new features/additions for 3.8 and 3.9 are also included in 3.10.
  - Add: Classes body tailored for use with diff
  - New feature: Classes promise: allow classes without an expression to
    default to defined.
  - Support for custom ports and host names as policy hub (CFE-953)
  - Add: Definition of from_cfexecd for cf-execd initiated runs
    (CFE-2386)
  - Add < <= > >= operators to eval().
  - Add testing jUnit and TAP bundles and include them in stdlib.cf
  - New function isipinsubnet() (ENT-7949)
  - LogDebug(): implement module-based debug logging.
    Now most DEBUG messages are *not* printed even when "-d" is in
    use, but the specific debug module has to be enabled on the
    command line. For example to enable all log modules, run:
      cf-agent -d --log-modules=all
  - Add: edit_line contains_literal_string to stdlib
  - add variablesmatching_as_data() function paralleling variablesmatching()
    (Redmine #7885)
  - Allow specifying agent maxconnections via def.json (CFE-2461)
  - Add getuserinfo() function
  - Add body agent control select_end_match_eof option. (CFE-2390)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=146
2016-11-16 09:13:16 +00:00
Klaus Kämpf
1742785afc - Update to 3.9.1
- Change: Log level for keeping verbatim JSON to DEBUG (CFE-2141)
  - Change (masterfiles): Definition of from_cfexecd for
    cf-execd initiated runs (CFE-2386)
  - Change: Switch processes restart_class logging to verbose
  - Change: Enable agent component management policy on systemd hosts
    (CFE-2429)
  - Change: Remove executable bit from systemd units (CFE-2436)
  - Change: Require network before cfengine services (CFE-2435)
  - Fix 'contain' attribute 'no_output' having no effect when
    the 'commands' promise is using 'module => "true"'. (CFE-2412)
  - Fix: Services starting or stopping unnecessarily (CFE-2421)
  - Fix occasional segfault when running getindices() on a
    variable that has indices of multiple depths (e.g. both "a[x]" and
    "a[x][y]"). (CFE-2397)
  - Fix bug in files promise when multiple owners are promised
    but first one doesn't exist, and improve logging . (CFE-2432)
  - fix: memory leaks

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=144
2016-08-05 10:33:18 +00:00
Klaus Kämpf
bc71744cf9 - Update to 3.9.0
Full changelog at https://github.com/cfengine/core/blob/3.9.0/ChangeLog
  New features:
  - Classes promise: allow classes without an expression to default to
    defined.
  - Add optional interface parameter to iprange() to match only one
    interface.
  - Allow '=' in symbolic modes (Redmine #7826)
  - Add: FreeBSD ports package module
  - New package module for FreeBSD pkg package manager.
  - Add support for adding/removing fifos in policy
  - Add Linux parsing of /proc/net/ data.
    - sys.inet
    - sys.inet6
    - sys.interface_data
    - Data is returned as a data container.
    - See documentation for more details. (Jira CFE-1991)
  - sys.ip2iface: new reverse mapping variable from IP to
    interface name
  - Namespaced classes can now be specified on the command line.
  - namespaces can now be passed to cf-runagent -D and --remote-bundles
    (Redmine #7856)
  - Add 'cf-full' and 'json-full' to cf-promises '-p' option.
    They generate output based on the entire policy. The existing 'cf'
    already behaved this way, and it has now been changed to generate
    output only for a single file, which the existing 'json' option
    already does.
  - New language functions: processexists() and findprocesses()
    (Redmine #7633)
  - Implement new regex_replace() function. (Redmine #7346)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=141
2016-06-15 12:27:59 +00:00
Klaus Kämpf
e109ec6c40 - Update to 3.8.2
Fixes:
  - Reduce verbosity of apt_get package module (Redmine #7485)
  - Reduce verbosity of yum package module (Redmine #7485)
  - The isvariable() function call now correctly accepts all
    array variables when specified inline. Previously it would not accept
    certain special characters, even though they could be specified
    indirectly by using a variable to hold it. (Redmine #7088)
  - Don't follow symbolic links when copying extended attributes.
  - Fix a bug which sometimes caused package promises to be
    skipped with "XX Another cf-agent seems to have done this
    since I started" messages in the log, most notably in long running cf-agent
    runs (longer than one minute). (Redmine #7933)
  - Fix bug which could render host unable to recover from a
    syntax error, even if failsafe.cf was utilized. This could
    happen if the file containing the syntax error was specified in the def.json
    special file. (Redmine #7961)
  - Change: Policy files specified in the "inputs" section of
    def.json will no longer be auto-loaded. One has to refer to the
    $(def.augments_inputs) variable in the policy (the standard
    masterfiles policies include this by default). This only affects
    installations which are not based on the standard masterfiles, and
    which are using the "inputs" field inside def.json. (Redmine #7961)
  - Fix file descriptor leak when there are network errors.
  - Fix cf-serverd error messages with classic protocol clients
    (Redmine #7818)
  - Installing packages containing version numbers using yum
    now works correctly. (Redmine #7825)
  - Fix ps options for FreeBSD to check processes only in
    current host and not in jails

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=139
2016-04-15 07:04:41 +00:00
Klaus Kämpf
8a516c9128 - Update to 3.8.1
Changes:
  - Upgrade CFEngine dependencies to the following versions:
    - OpenSSL   1.0.2e
    - PCRE      8.38
    - libxml2   2.9.3
    - OpenLDAP  2.4.43
    - libcurl   7.46.0
  - Upgrade LMDB to version 0.9.17. (Redmine #7879)
  Bug fixes:
  - @if minimum_version now correctly ignores lines starting with '@'
    (Redmine #7862)
  - Add guard for binary upgrade during bootstrap (Redmine #7861)
  - Namespaced classes can now be specified on the command line.
  - Fix bad option nlwp to vzps on Proxmox / OpenVZ. (Redmine #6961)
  - Fix two cases where action_policy warn still produces errors
    (Redmine #7274)
  - Parse def.json vars, classes and inputs from the C code. This
    fixes a bug where certain entries in this file would be parsed
    too late to have any effect on the evaluation. (Redmine #7453, #7615)
  - Fix HP-UX specific bug that caused a lot of log output to disappear.
  - Check for empty server response in RemoteDirList after decryption
    (Redmine #7908)
  - getvalues() will now return a list also for data containers,
    and will descend recursively into the containers. (Redmine #7116)
  - Define (bootstrap|failsafe)_mode during update.cf when triggerd
    from failsafe.cf (Redmine #7861)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=137
2016-02-01 14:28:47 +00:00
Klaus Kämpf
5e0723222b final
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=136
2015-12-07 13:10:49 +00:00
Klaus Kämpf
88541f883c - Update to 3.8.0
New features/additions:
  - New feature: Bodies can now inherit attribute values from
    other bodies by specifying "inherit_from" with the name of the body to
    inherit from, plus any arguments it accepts. For example:
    body classes myclasses
    {
      inherit_from => classes_generic("myname");
    }
    (Redmine #4309)
  - Add url_get() function. (Redmine #6480)
  - Add @if feature() syntax
    @if feature work like @if minimum_version but allows distinguishing
    between features choosen at compile time.
  - Extend module protocol to create persistent classes.
    To use it, have the module print a line with "^persistence=<minutes>"
    before printing any class names. "persistence=0" goes back to non-
    persistent classes. (Redmine #7302)
  - Add: New results classes body (Redmine #7418)
  - Add: Debug reports in cfe_internal_cleanup_agent_reports
  - Add: Path to svcprop in stdlib
  - Add: masterfiles-stage script to contrib
  - Whitespace is now allowed in class expressions for
    readability, between class names and operators. (Redmine #7152)
  - Add: New results classes body [Redmine#7481] (Redmine #7418)
      
  Changes:
  - Change: Clarify bootstrap/failsafe reports
  - Change: Improve in-line docs for internal log maintenance
  - Change: Improve efficiency and debug reports (Redmine #7527)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=134
2015-11-12 09:02:18 +00:00
Klaus Kämpf
f1df3b9f90 - Update to 3.7.1 (LTS release)
- Fix daemons not restarting correctly on upgrade on AIX. (Redmine #7550)
  - Fix upgrade causing error message under systemd because of open ports.
  - Fix build with musl libc. (Redmine #7455)
  - Long promiser strings with multiple lines are now abbreviated in
    logs. (Redmine #3964)
  - Fixed a bug which could cause daemons to not to be killed
    correctly when upgrading or manually running "service cfengine3 stop".
    (Redmine #7193)
  - Package promise: Fix inability to install certain packages
    with numbers.
  - Fix package promise not removing dependant packages. (Redmine #7424)
  - Fix warning "Failed to parse csv file entry" with certain very
    long commands promises. (Redmine #7400)
  - Fix misaligned help output in cf-hub. (Redmine #7273)
  - Augmenting inputs from the augments_file (Redmine #7420)
  - Add support for failover to 3rd HA node located outside cluster.
  - Upgrade all dependencies for patch release.
  - Fix a bug which caused daemons not to be restarted on upgrade.
    (Redmine #7528)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=132
2015-09-09 13:57:04 +00:00
Klaus Kämpf
0de9c78864 - Update to 3.7.0
See https://github.com/cfengine/core/blob/3.7.x/ChangeLog for
  full changelog
  New features:
  - New package promise implementation.
    The syntax is much simpler, to try it out, check out the syntax:
      packages:
        "mypackage"
          policy => "absent/present",
          # Optional, default taken from common control
          package_module => apt_get,
          # Optional, will only match exact version. May be
          # "latest".
          version => "32.0",
          # Optional.
          architecture => "x86_64";
  - Full systemd support for all relevant platforms
  - New classes to determine whether certain features are enabled:
    * feature_yaml
    * feature_xml
    For the official CFEngine packages, these are always enabled, but
    packages from other sources may be built without the support.
  - New readdata() support for generic data input (CSV, YAML, JSON, or auto)
  - YAML support: new readyaml() function and in readdata()
  - CSV support: new readcsv() function and in readdata()
  - New string_mustache() function
  - New data_regextract() function
  - eval() can now be called with "class" as the "mode" argument, which
    will cause it to return true ("any") if the calculated result is
    non-zero, and false ("!any") if it is zero.

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=131
2015-07-30 10:12:28 +00:00
Klaus Kämpf
cf0dde5aac - Fix Fedora/RHEL builds
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=126
2015-06-17 13:29:35 +00:00
Tomáš Chvátal
4d3f7735a7 - Partial fix for bnc#923417:
* 0001-Do-not-use-insecure-MD5-but-rather-SHA256.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=124
2015-03-23 10:20:00 +00:00
Tomáš Chvátal
3284c93bd1 - Enable tests, 1 fail so document it
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=123
2015-03-18 14:33:46 +00:00
Tomáš Chvátal
a4711c12c3 - Enable pam and disable silent rules for make
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=122
2015-03-18 14:32:21 +00:00
Tomáš Chvátal
976dbe8018 - Proceed bit more with cleaning, the RH sections are failing to build
for couple of years. Better readability without them so prune it
  out
- Convert the in-spec build switches to %bcond
- Provide rcbla links to systemd services

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=121
2015-03-18 14:27:40 +00:00
Tomáš Chvátal
064b312930 - Add patch to use proper SSL exponent bnc#922571
* cfengine-fips.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=117
2015-03-17 13:51:53 +00:00
Tomáš Chvátal
6ba77f9022 - Format with spec-cleaner, this is just reordering, no factical
change here

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=116
2015-03-17 13:41:48 +00:00
Klaus Kämpf
51e397b633 - Update to 3.6.5
Features:
  - Introduced "systemd" hard class. (Redmine #6995)
  - Added paths to dtrace, zfs and zpool on FreeBSD in masterfiles.
  Bug fixes:
  - Fixed build error on certain RHEL5 and SLES10 setups. (Redmine #6841)
  - Fixed a bug which caused dangling symlinks not to be removed.
    (Redmine #6582)
  - Fixed data_readstringarrayidx function not preserving the order of
    the array it's producing. (Redmine #6920)
  - Fixed a bug which sometimes caused CFEngine to kill the wrong daemon
    if both the host and a container inside the host were running
    CFEngine. (Redmine #6906)
  - Made sure the rm_rf_depth bundle also deletes the base directory.
    (Redmine #7009)
  - Fixed monitord reporting wrongly on open ports. (Redmine #6926)
  - Skip adding the class when its name is longer than 1024 characters.
    Fixed core dump when the name is too large. (Redmine #7013)
  - Fixed detection of stopped process on Solaris. (Redmine #6946)
  - Fixed infinite loop (Redmine #6992) plus a couple more minor
    bugs in edit_xml promises.

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=114
2015-03-13 07:56:21 +00:00
Klaus Kämpf
c59e64b3e1 Accepting request 287583 from home:dimstar:Factory
- Remove install-info calls in post/postun: there is no info page
  being installed.
- rop texlive BuildRequires (there is no info page, and even if,
  makeinfo would be sufficien).

OBS-URL: https://build.opensuse.org/request/show/287583
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=112
2015-02-25 06:44:30 +00:00
Klaus Kämpf
4440cc8a59 - Update to 3.6.4
Features:
  - Introduced users promises support on HP-UX platform.
  - Introduced process promises support on HP-UX platform.
  Bug fixes:
  - Fixed bug on FreeBSD which sometimes led to the wrong process being
    killed (Redmine #2330)
  - Fixed package version comparison sometimes failing with rpm package
    manager (Redmine #6807)
  - Fixed a bug in users promises which would sometimes set the wrong
    password hash if the user would also be unlocked at the same time.
  - Fixed a bug on AIX which would occationally kill the wrong process.
  - Improved error message for functions that require an absolute path.
    (Redmine #6877)
  - Fixed some spelling errors in examples.
  - Fixed error in out-of-tree builds when building cf-upgrade.
  - Fixed a bug which would make cf-agent exit with an error if it was
    built with a custom log directory, and that directory did not exist.
  - Fixed ordering of evaluating promises when depends_on is used.
    (Redmine #6484, Redmine #5462)
  - Skip non-empty directories silently when recursively deleting.
    (Redmine #6331)
  - Fix memory exhaustion with list larger than 4994 items.
    (Redmine # 6672)
  - Fix cf-execd segfault on IP address detection (Redmine #6905).
  - Fix hard class detection of RHEL6 ComputeNode (Redmine #3148).

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=110
2015-01-28 07:44:22 +00:00
Klaus Kämpf
b988d3df30 - Update to 3.6.3
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=108
2014-12-06 12:29:11 +00:00