summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server
Commit message (Collapse)AuthorAgeFilesLines
* bcfg2-admin: Check for django before checking django versionDmitri Iouchtchenko2016-09-111-1/+1
|
* Merge pull request #340 from rbuch/masterAlexander Sulfrian2016-08-181-3/+7
|\ | | | | Add support for rawurl in Apt
| * Add support for rawurl in AptRonak Buch2016-08-171-3/+7
| |
* | doc: Escape underscoresAlexander Sulfrian2016-08-181-1/+1
|/ | | | | Double underscore mark anonymous hyperlinks. To include '__' literally we need to escape it.
* Server/models: Exclude the Reporting pluginAlexander Sulfrian2016-08-171-0/+4
| | | | | The reporting database is not handled within Bcfg2.Server but in the Bcfg2.Reporting app.
* Bcfg2/Server: Add migrations for Bcfg2.ServerAlexander Sulfrian2016-08-174-0/+115
| | | | | Django1.9 requires every app to have migrations. You cannot create a tables without having migrations.
* Server/Plugins/Ldap: Module should be importable without the python-ldapAlexander Sulfrian2016-08-171-6/+11
|
* Revert "removed duplicate plugins option"Alexander Sulfrian2016-08-171-5/+25
| | | | This reverts commit 30634d07d5489f260f37cc86d150315f02c40865.
* Server/Core: Ignore pylint errorAlexander Sulfrian2016-08-171-1/+1
| | | | | pylint should ignore this method, because it is only used as fallback for older django versions and does not exists in newer versions.
* Server/Plugins/Metadata: Initialize django _before_ creating modelsAlexander Sulfrian2016-08-171-3/+3
|
* Server/Plugins/Probes: Initialize django before useAlexander Sulfrian2016-08-171-0/+5
|
* Merge pull request #320 from AlexanderS/fix/more-django-fixesAlexander Sulfrian2016-07-171-0/+4
|\ | | | | Some more django fixes
| * Metadata: Add fix for django1.7Alexander Sulfrian2015-11-171-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/bcfg2Sol Jerome2016-07-102-26/+28
|\ \
| * | Set value for data in case accept_input is false.Gordon Messmer2016-04-211-1/+2
| | |
| * | Bcfg2.Options.Subcommand must not access Options.setup in __init__.Gordon Messmer2016-04-211-8/+14
| | |
| * | Only read input if accept_input is True.Gordon Messmer2016-04-211-7/+8
| | |
| * | Remove PositionalArgument. It was incomplete and did not work as intended, ↵Gordon Messmer2016-04-211-4/+1
| | | | | | | | | | | | requiring two positional args instead of one.
| * | Fix format error in logger call.Gordon Messmer2016-04-211-2/+2
| | |
| * | Handle rid intelligently, to avoid infinite loop.Gordon Messmer2016-04-211-5/+2
| | |
* | | Fix long line.Gordon Messmer2016-04-011-1/+2
| | |
* | | Generate ed25519 keys.Gordon Messmer2016-03-311-1/+7
|/ /
* | Merge branch 'setup-options' of https://github.com/gordonmessmer/bcfg2Sol Jerome2016-03-034-4/+7
|\ \
| * | Correct the name of the server's location option.Gordon Messmer2016-02-172-4/+4
| | |
| * | Add dest= arg to fix option that is referenced as cfg_validation.Gordon Messmer2016-02-171-0/+1
| | |
| * | Add dest= arg to fix LDAP options.Gordon Messmer2016-02-171-0/+2
| | |
* | | Lint/TemplateHelper: Fix parametersAlexander Sulfrian2015-11-181-1/+1
| |/ |/| | | | | | | | | | | The HelperModules of the TemplateHelper now expects a second argument with the core, to be able to expire the metadata cache. This is a fix-up for 36b2aa66627a4cc147f982d03688ae9df14bbe08.
* | Info: EventDebug, Update and Quit are now command classesAlexander Sulfrian2015-10-131-17/+26
| |
* | DefaultACL: Deny remote access to expire_metadata_cacheAlexander Sulfrian2015-10-131-1/+2
| |
* | Info: expirecache only for interactive shellAlexander Sulfrian2015-10-131-0/+1
| | | | | | | | | | The expirecache subcommand is only usefull from an interactive shell, so do not advertise it in the help from the commandline.
* | Info: Fix expirecache subcommandAlexander Sulfrian2015-10-131-5/+4
| | | | | | | | The expirecache subcommand was using an old API.
* | Info: Fix bcfg2-info shellAlexander Sulfrian2015-10-131-25/+47
| |
* | Admin: Add expirecache commandAlexander Sulfrian2015-10-132-0/+34
| | | | | | | | | | | | | | Expirecache is now part of bcfg2-admin and will call expire_metadata_cache from Core via XML-RPC. This will expire the metadata cache of the supplied clients (or the complete cache if no arguments are supplied) on a running bcfg2-server.
* | Merge pull request #299 from AlexanderS/fix/cachingChris St. Pierre2015-10-058-23/+76
|\ \ | | | | | | Expire metadata cache in all Connector plugins.
| * | Properties: Expire the metadata cache during reload of the filesAlexander Sulfrian2015-07-271-11/+30
| | |
| * | Probes: Use core.metadata_cache instead of Bcfg2.Server.CacheAlexander Sulfrian2015-07-271-7/+8
| | |
| * | AWSTags: Expire metadata cache at start of client runAlexander Sulfrian2015-07-271-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 expirationAlexander Sulfrian2015-07-271-1/+1
| | | | | | | | | | | | This was maybe missing in 38f3cfcfd.
| * | GroupLogic: Expire metadata cache on config file changesAlexander Sulfrian2015-07-271-1/+12
| | |
| * | SSHbase: Expire metadata cache on pubkey eventAlexander Sulfrian2015-07-271-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 changesAlexander Sulfrian2015-07-271-1/+6
| | |
| * | TemplateHelper: Expire metadata cache on FileMonitor eventAlexander Sulfrian2015-07-271-2/+10
| | |
* | | Merge branch 'fix/django1.7' of https://github.com/AlexanderS/bcfg2Sol Jerome2015-10-016-32/+53
|\ \ \
| * | | Reports: Add explicit default valueAlexander Sulfrian2015-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | Django changed the default value for BooleanFields some time ago, so we add an explicit default value to remove the warnings.
| * | | Reports: Fix InternalDatabaseVersionAlexander Sulfrian2015-09-232-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | You could not import a class, that is defined in a function. We need to return the class, but we do not want to define it multiple times. So we have to save the class in a global variable.
| * | | Replace close_connection() for newer django versionsAlexander Sulfrian2015-09-231-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | django.db.close_connection() is deprecated in django1.7 (and removed in 1.8). The new django.db.close_old_connections() does not seem to work like the old one (see http://stackoverflow.com/a/32614137), so we replace it with an own implementation.
| * | | Server: Use close_db_connection decorator everywhereAlexander Sulfrian2015-09-231-4/+1
| | | |
| * | | Server/Admin: Remove load_models() callAlexander Sulfrian2015-09-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | The models should be loaded during the options parsing and so this call issues a warning message from django, that the models are already registered.
| * | | Server/Admin: Remove call of django.setupAlexander Sulfrian2015-09-231-3/+0
| | | | | | | | | | | | | | | | django.setup() is already called from the option parsing before.
| * | | Reporting: Clear error message if django is missingAlexander Sulfrian2015-09-231-8/+7
| | | |