Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Server/Plugins/Ldap: Cache the results of the Ldap queries | Alexander Sulfrian | 2017-03-21 | 1 | -17/+52 |
| | | | | | | | Using the OnDemandDict removes the results of Ldap queries from the client_metadata cache. We add a new cache per hostname cache for the single ldap queries and add a new configuration option to enable caching until the cache is expired manually via XML-RPC. | ||||
* | Server/Plugins/Ldap: Add missing argument | Alexander Sulfrian | 2017-03-21 | 1 | -1/+2 |
| | |||||
* | Server/Plugins/Ldap: Use CallableDict | Alexander Sulfrian | 2017-03-21 | 1 | -14/+28 |
| | | | | | With the CallableDict the LdapQueries will only be executed, if the values are used. | ||||
* | Server/Plugin: Move OnDemandDict to helpers | Alexander Sulfrian | 2017-03-21 | 1 | -49/+3 |
| | | | | The OnDemandDict could be used by different plugins. | ||||
* | Merge pull request #373 from AlexanderS/fix/django1.9/report-collector | Alexander Sulfrian | 2017-01-10 | 2 | -21/+16 |
|\ | | | | | Fix bcfg2-report-collector for django-1.9 | ||||
| * | DBSettings: Call django.setup() right after configuring the settings | Alexander Sulfrian | 2016-11-28 | 2 | -21/+16 |
| | | | | | | | | | | | | If required the DBSettings config hook will call django.setup right after configuring django with the required settings. So we can drop the calls to django.setup from all other places. | ||||
* | | Server/Plugins/NagiosGen: Remove the list conversion | Alexander Sulfrian | 2016-11-23 | 1 | -5/+3 |
| | | |||||
* | | Server/Plugins/NagiosGen: Always include default group | Alexander Sulfrian | 2016-11-23 | 1 | -1/+1 |
|/ | | | | | | | | | The default group file should be included, even if no server is in the 'default' hostgroup. It allows to include global definitions (like a service template). The behaviour is documented and was broken by 590a1314bca44f29fc34bd27f0d49599b7eeab10. | ||||
* | Merge pull request #368 from solj/fix-ssl-futurewarning | Alexander Sulfrian | 2016-11-21 | 1 | -2/+2 |
|\ | | | | | Cfg: Fix SSLCA key generation | ||||
| * | Cfg: Fix SSLCA key generation | Sol Jerome | 2016-11-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | The previous check resulted in a "FutureWarning" and also did not work as expected and reset the key values in every case. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | | Packages: Cleanup pkgnames | Alexander Sulfrian | 2016-11-17 | 3 | -1/+4 |
|/ | | | | | | The pkgnames should be reset before parsing the source files. If a package was removed for a source, it should be removed from the pkgnames set, too. The packages plugin should look for the next source containing the package. | ||||
* | Merge branch 'pacman' of https://github.com/0/bcfg2 | Sol Jerome | 2016-09-15 | 1 | -14/+128 |
|\ | |||||
| * | Packages/Pac: Handle groups | Dmitri Iouchtchenko | 2016-09-12 | 1 | -1/+38 |
| | | |||||
| * | Packages/Pac: Parse dependencies | Dmitri Iouchtchenko | 2016-09-12 | 1 | -13/+90 |
| | | |||||
* | | Packages: Strip ':any' suffix from APT dependencies | Dmitri Iouchtchenko | 2016-09-08 | 1 | -0/+11 |
|/ | |||||
* | Add support for rawurl in Apt | Ronak Buch | 2016-08-17 | 1 | -3/+7 |
| | |||||
* | Server/Plugins/Ldap: Module should be importable without the python-ldap | Alexander Sulfrian | 2016-08-17 | 1 | -6/+11 |
| | |||||
* | Server/Plugins/Metadata: Initialize django _before_ creating models | Alexander Sulfrian | 2016-08-17 | 1 | -3/+3 |
| | |||||
* | Server/Plugins/Probes: Initialize django before use | Alexander Sulfrian | 2016-08-17 | 1 | -0/+5 |
| | |||||
* | Merge pull request #320 from AlexanderS/fix/more-django-fixes | Alexander Sulfrian | 2016-07-17 | 1 | -0/+4 |
|\ | | | | | Some more django fixes | ||||
| * | Metadata: Add fix for django1.7 | Alexander Sulfrian | 2015-11-17 | 1 | -0/+4 |
| | | | | | | | | | | The Metadata database backend also uses django1.7 and we have to run django.setup() here, too. | ||||
* | | Merge branch 'yum-helper-2' of https://github.com/gordonmessmer/bcfg2 | Sol Jerome | 2016-07-10 | 2 | -26/+28 |
|\ \ | |||||
| * | | Set value for data in case accept_input is false. | Gordon Messmer | 2016-04-21 | 1 | -1/+2 |
| | | | |||||
| * | | Bcfg2.Options.Subcommand must not access Options.setup in __init__. | Gordon Messmer | 2016-04-21 | 1 | -8/+14 |
| | | | |||||
| * | | Only read input if accept_input is True. | Gordon Messmer | 2016-04-21 | 1 | -7/+8 |
| | | | |||||
| * | | Remove PositionalArgument. It was incomplete and did not work as intended, ↵ | Gordon Messmer | 2016-04-21 | 1 | -4/+1 |
| | | | | | | | | | | | | requiring two positional args instead of one. | ||||
| * | | Fix format error in logger call. | Gordon Messmer | 2016-04-21 | 1 | -2/+2 |
| | | | |||||
| * | | Handle rid intelligently, to avoid infinite loop. | Gordon Messmer | 2016-04-21 | 1 | -5/+2 |
| | | | |||||
* | | | Fix long line. | Gordon Messmer | 2016-04-01 | 1 | -1/+2 |
| | | | |||||
* | | | Generate ed25519 keys. | Gordon Messmer | 2016-03-31 | 1 | -1/+7 |
|/ / | |||||
* | | Merge branch 'setup-options' of https://github.com/gordonmessmer/bcfg2 | Sol Jerome | 2016-03-03 | 2 | -0/+3 |
|\ \ | |/ |/| | |||||
| * | Add dest= arg to fix option that is referenced as cfg_validation. | Gordon Messmer | 2016-02-17 | 1 | -0/+1 |
| | | |||||
| * | Add dest= arg to fix LDAP options. | Gordon Messmer | 2016-02-17 | 1 | -0/+2 |
| | | |||||
* | | Merge pull request #299 from AlexanderS/fix/caching | Chris St. Pierre | 2015-10-05 | 8 | -23/+76 |
|\ \ | | | | | | | Expire metadata cache in all Connector plugins. | ||||
| * | | Properties: Expire the metadata cache during reload of the files | Alexander Sulfrian | 2015-07-27 | 1 | -11/+30 |
| | | | |||||
| * | | Probes: Use core.metadata_cache instead of Bcfg2.Server.Cache | Alexander Sulfrian | 2015-07-27 | 1 | -7/+8 |
| | | | |||||
| * | | AWSTags: Expire metadata cache at start of client run | Alexander Sulfrian | 2015-07-27 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | AWSTags cannot know whether the tags change, so it cannot expire the metadata cache correctly. Instead we have to expire the cache at beginning of each client run. This practically disables agressive client metadata caching, so we print a warning. | ||||
| * | | PuppetENC: Fix cache expiration | Alexander Sulfrian | 2015-07-27 | 1 | -1/+1 |
| | | | | | | | | | | | | This was maybe missing in 38f3cfcfd. | ||||
| * | | GroupLogic: Expire metadata cache on config file changes | Alexander Sulfrian | 2015-07-27 | 1 | -1/+12 |
| | | | |||||
| * | | SSHbase: Expire metadata cache on pubkey event | Alexander Sulfrian | 2015-07-27 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | SSHbase supply the public keyfiles as additional metadata, so we need to expire the metadata cache if we get an event for such file. We would only need to expire the metadata cache for hosts, that reference that exact file (host or group specific) but we cannot get this information, so that we simply expire the metadata cache for all hosts. | ||||
| * | | Ohai: Expire metadata cache, if ohai data changes | Alexander Sulfrian | 2015-07-27 | 1 | -1/+6 |
| | | | |||||
| * | | TemplateHelper: Expire metadata cache on FileMonitor event | Alexander Sulfrian | 2015-07-27 | 1 | -2/+10 |
| | | | |||||
* | | | Merge branch 'fix/django1.7' of https://github.com/AlexanderS/bcfg2 | Sol Jerome | 2015-10-01 | 1 | -6/+9 |
|\ \ \ | |||||
| * | | | Reporting: Clear error message if django is missing | Alexander Sulfrian | 2015-09-23 | 1 | -8/+7 |
| | | | | |||||
| * | | | fix check for reporting in src/lib/Bcfg2/Server/Plugins/Reporting.py | Jonas Jochmaring | 2015-09-23 | 1 | -7/+11 |
| | |/ | |/| | |||||
* / | | Bundler: Fix addition of bundle. | Alexander Sulfrian | 2015-09-30 | 1 | -1/+1 |
|/ / | | | | | | | bundles is a set and does only have add() but not append(). | ||||
* | | Compatibility with Jinja < 2.7. | Gordon Messmer | 2015-09-09 | 1 | -3/+9 |
| | | |||||
* | | Keep trailing newlines in Jinja2 templates. | Gordon Messmer | 2015-09-09 | 1 | -1/+3 |
| | | |||||
* | | Merge branch 'rules-replace_name' of https://github.com/AlexanderS/bcfg2 | Sol Jerome | 2015-09-01 | 2 | -2/+37 |
|\ \ | |||||
| * | | Rules: New options replace_name to replace %{name} in attributes | Alexander Sulfrian | 2015-08-26 | 2 | -2/+37 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | If you use the regex feature of Rules/Defaults you may need the real name of the matched entry in an attribute (for example home of POSIXUser). You can now enable replace_name for rules or defaults and %{name} will be replaces in the attribues of the Element before adding them to the target entry. This allows you to write something like that in Defaults to assing a default home directory somewhere else to all users with unset home: <POSIXUser name='.*' home='/somewhere/%{name}'/> |