Commit Graph

104 Commits

Author SHA1 Message Date
d1c83026bd Update for tests 2019-05-10 20:06:41 +01:00
186695438a Update for tests 2019-05-10 20:05:16 +01:00
6a5ec21a1e Fixup tests 2019-05-09 23:44:49 +01:00
939f795d37 Autocorrect PDK validation warnings 2019-05-09 23:41:09 +01:00
998f1716f3 Switch to PDK module layout 2019-05-09 23:39:55 +01:00
0291282ee2 Add cleanup task 2019-05-08 22:10:09 +01:00
f95631312f update changelog and bump version to 0.5.0 2018-10-14 12:13:48 +01:00
659e3af412 Update rubocopy gem for security issue, and blacksmith for release 2018-10-14 12:09:18 +01:00
882df7423d Handle packages with pre_pre version strings 2018-10-14 11:54:13 +01:00
c830b8ebd0 Add missing ends 2018-10-14 11:38:29 +01:00
1c7804128c Pass on only the exception message for puppet 6 compatibility 2018-10-14 11:34:51 +01:00
e5718d058e [blacksmith] Bump version to 0.4.1 2017-03-13 21:14:51 +00:00
dc3a3a9337 Release 0.4.0 v0.4.0 2017-03-13 21:14:16 +00:00
e4df1583df Add executable bits on sabayon.sh operatingsytem fact 2017-03-13 21:00:12 +00:00
Alexander "Ace" Olofsson
0bc87f0cbf Replace custom fact with executable fact
Should solve #4
2017-03-12 23:46:36 +01:00
c87ceb824b Add CircleCI badge 2016-11-12 18:44:20 +00:00
Ben Roberts
55da9601b0 Merge pull request #3 from ace13/patch-1
Update operatingsystem.rb
2016-11-01 21:39:40 +00:00
Alexander "Ace" Olofsson
c46c360eb0 Update operatingsystem.rb
Use additional confines instead of checks in setcode to detect the distribution ID
2016-10-31 09:31:41 +01:00
9d89654211 Document requirement for lsb-release 2016-10-24 15:19:57 +01:00
d8b9a1b4a5 Add circle.yml to run automated tests on github push 2016-10-19 21:35:30 +01:00
9f8cc61cf1 [blacksmith] Bump version to 0.3.1 2016-10-16 13:44:51 +01:00
e962f31411 Release 0.3.0 v0.3.0 2016-10-16 13:43:39 +01:00
97c1cc97e6 Add entropy_repos fact 2016-10-16 13:42:47 +01:00
bd1fd54bbb Handle unexpected boolean type conversion 2016-10-16 13:35:09 +01:00
3a4c1c85ad Add entropy_repo type/provider, with tests and docs 2016-10-16 00:40:35 +01:00
0c3db36c4d [blacksmith] Bump version to 0.2.1 2016-10-13 22:19:22 +01:00
9115033d04 [blacksmith] Bump version to 0.2.0 v0.2.0 2016-10-13 22:18:18 +01:00
cabc5c19ce Update changelog for 0.2.0 release 2016-10-13 22:17:13 +01:00
7dca7dad51 Update README with information about bundled facts 2016-10-13 22:14:32 +01:00
53bbad2eb1 Fix entropy providers use of equo with locale
Previous attempt didn't work properly. This version uses the proper
`provider.has_command` api to specify the env vars which should be used.

Also catches the exit 1 thrown when `equo match --installed` doesn't
find anything, now that the wrapper script is no longer hiding the exit
code behind an explicit `exit 0`.
2016-10-13 22:08:04 +01:00
80644b6813 Update changelog 2016-10-13 18:56:38 +01:00
4020627a15 Remove obsolete has_entropy fact 2016-10-13 18:55:24 +01:00
a265caa979 Update entropy package provider to use locale without shelling out 2016-10-13 18:55:07 +01:00
7ce45a207f Add a locale fact which uses eselect locale to retrieve system default 2016-10-13 18:54:28 +01:00
6d9b130f9d Update changelog version to 0.1.2, workaround blacksmith problem 2016-10-13 17:07:04 +01:00
f2565cccc1 [blacksmith] Bump version to 0.1.3 2016-10-13 17:05:36 +01:00
f4bdac2266 [blacksmith] Bump version to 0.1.2 v0.1.2 2016-10-13 17:04:51 +01:00
f90c0fb9ef Update changelog for release 0.1.1 v0.1.1 2016-10-13 17:04:28 +01:00
5e5d056025 Remove required attribute validation
Previously, the entropy types would require that either package, tag, or repo
were provided, since that makes sense for the entropy files. Having a resource
that could not provide any of these would leave a malformed entry in the files.

I've had to remove that due to a deficiency in Puppet that's taken a long time
to track down. While the validation works fine for resources specified in
manifests, it breaks when parsing the records back in. Here's why:

- The provider instances method is called to retrieve a list of all entries
  in the entropy files. This correctly parses the name and properties into the
  provider instance object
- Puppet's type.rb enumerates through each of these, and tries to create a new
  Type insance using just the name and provider parameters from the provider
  instance. It then intends to iterate through the properties and add them one
  at a time.
  0c2157974a/lib/puppet/type.rb (L1180)
- The problem is that the top-level validation function is called when the
  object is first created, and at this time, none of the properties have been
  set, so the required properties have not been set and validation fails.

The top-level validation block cannot mandate a property be set, only other
types of condition.
2016-10-13 16:52:29 +01:00
0e774c77d5 Improve category/package regex, validation and add spec tests 2016-10-13 16:51:22 +01:00
f45895e8dd [blacksmith] Bump version to 0.1.1 2016-10-13 01:06:01 +01:00
fa20f3aead Release 0.1.0 v0.1.0 2016-10-13 01:03:33 +01:00
76ffa4937b Add .pmtignore to exclude vendor directory from puppet module 2016-10-13 01:03:26 +01:00
24b4a82949 Update changelog for 0.1.0 2016-10-13 00:49:43 +01:00
336d8f355a Add spec tests for entropy_keywords 2016-10-13 00:48:20 +01:00
7f069307ee Handle keywords entries with just a repo and no package 2016-10-13 00:48:07 +01:00
9b9e1281f3 Add provider spec tests for common package types, and tidy up test locations 2016-10-12 23:13:05 +01:00
61b3262b7a Use native to_line methods which is more easily testable 2016-10-12 23:11:11 +01:00
60329c3dec WIP add provider flush tests 2016-10-12 16:19:05 +01:00
170787c7ad Add provider parser tests for the common package types 2016-10-12 13:18:55 +01:00