summaryrefslogtreecommitdiffstats
path: root/tools/upgrade
Commit message (Collapse)AuthorAgeFilesLines
* tools/upgrade: Fix checking for related fieldsAlexander Sulfrian2015-09-291-7/+9
| | | | | If we check for the existance of a related object, newer django versions (>= 1.5) raise a ObjectDoesNotExist exception and we have to handle it.
* Reporting: Do not use django.db.backend in newer django versionsAlexander Sulfrian2015-09-231-6/+11
| | | | | | The private API django.db.backend is deprecated in django 1.7 and removed in django 1.8, so we use another way to get the DatabaseOperations from the connection.
* tools/upgrade: Support multiple databasesAlexander Sulfrian2015-09-231-3/+5
| | | | | Do not use the global django connection object but the matching instance from the django connections list.
* tools/upgrade: Parse the Options before using djangoAlexander Sulfrian2015-09-231-2/+3
| | | | | | We need to go through the Options parsing before we could use django and import the models. The Options parsing will setup django and prepare the required settings.
* tools: components of a Options parser sould be a listAlexander Sulfrian2015-07-201-1/+1
|
* tools: Fix issue introduced in cd14868d with new parser for OptionsAlexander Sulfrian2015-07-202-6/+10
| | | | | | The new parser creates the the full plugin classes out of the options, so we need to use the __name__ attribute to get the name of the plugin and the directory containing the files in the repository.
* Merge branch 'maint'Alexander Sulfrian2014-11-122-0/+55
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog doc/conf.py doc/releases/index.txt doc/server/database.txt doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/sslca.txt man/bcfg2.conf.5 misc/bcfg2-selinux.spec misc/bcfg2.spec osx/Makefile osx/macports/Portfile schemas/packages.xsd solaris-ips/MANIFEST.bcfg2-server.header solaris-ips/MANIFEST.bcfg2.header solaris-ips/Makefile solaris-ips/pkginfo.bcfg2 solaris-ips/pkginfo.bcfg2-server solaris/Makefile solaris/pkginfo.bcfg2 solaris/pkginfo.bcfg2-server src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Client/Tools/APT.py src/lib/Bcfg2/Client/Tools/Action.py src/lib/Bcfg2/Client/Tools/SYSV.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/templates/base.html src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Packages/Apt.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/settings.py src/lib/Bcfg2/version.py testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * SYSV: add a migration tool to change simplename attributes to simplefileMichael Fenn2014-11-072-0/+55
| |
* | Merge branch 'maint'Chris St. Pierre2013-11-121-4/+4
|\| | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Admin/Reports.py src/lib/Bcfg2/Server/Hostbase/hostbase/urls.py src/lib/Bcfg2/Server/Hostbase/urls.py src/sbin/bcfg2-crypt tools/upgrade/1.3/migrate_dbstats.py
| * Fix compatibility with Django 1.6.Simon Ruderich2013-11-111-4/+5
| |
* | Merge branch 'maint'Chris St. Pierre2013-11-112-3/+18
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Admin/Compare.py src/lib/Bcfg2/Server/Admin/Snapshots.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugins/Probes.py src/sbin/bcfg2-crypt src/sbin/bcfg2-reports tools/upgrade/1.3/migrate_configs.py tools/upgrade/1.3/migrate_perms_to_mode.py
| * tools: skip ignored files (e.g., .svn) in migrate_perms_to_mode (from Matt ↵Chris St. Pierre2013-11-081-1/+14
| | | | | | | | Baker)
| * tools: fix incorrect reference to config file in migrate_configs.py (from ↵Chris St. Pierre2013-11-081-4/+4
| | | | | | | | Matt Baker)
* | DB: fixed how Django settings are loadedChris St. Pierre2013-10-302-12/+16
| |
* | Rewrote SSLCA as Cfg handler.Chris St. Pierre2013-08-132-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds encryption support to SSL key creation (much like SSH private keys), and the ability to generate keys and certs that are specific to groups, instead of just to hosts. It also moves the SSLCA data (the XML files describing keys and certs as well as the keys and certs themselves) into the Cfg tree, rather than off in their own separate place. tools/upgrade/1.4/migrate_sslca.py can be used to migrate to the new format. This also adds XMLCfgCreator, a CfgCreator that makes it easier to create data based on XML descriptions of it (which is exactly what the SSH key and SSL CA creators do), including built-in support for host- and group-specific data, encryption, and so on.
* | tools: fixed unit testsChris St. Pierre2013-08-091-2/+3
| |
* | Options: migrated tools to new parserChris St. Pierre2013-06-2711-82/+134
| |
* | Merge branch 'maint'Sol Jerome2013-06-023-1/+78
|\| | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/installation/distributions.txt doc/server/snapshots/index.txt src/lib/Bcfg2/Server/Plugin/helpers.py src/sbin/bcfg2-server
| * Merge pull request #81 from kincl/jasons-hackingChris St. Pierre2013-05-282-0/+73
| |\ | | | | | | Upgrade script to move from XML to DB for Probes
| | * adding docJason Kincl2013-05-222-0/+10
| | |
| | * 1.3 Upgrade Tools: Added script to facilitate upgrading from Probe XML to ↵Jason Kincl2013-05-221-0/+63
| | | | | | | | | | | | database backend
| * | tools: make migrate_info.py migrate "perms" ↵Chris St. Pierre2013-05-221-1/+5
| |/ | | | | | | (http://trac.mcs.anl.gov/projects/bcfg2/ticket/1150)
* | Merge branch 'maint'Chris St. Pierre2013-05-171-10/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/centos.txt doc/server/plugins/grouping/metadata.txt setup.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/sbin/bcfg2-lint
| * tools: pylint/pep8 fixesSol Jerome2013-05-101-10/+9
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge branch 'maint'Chris St. Pierre2013-04-241-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Perf.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/Fam.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Base.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Cvs.py src/lib/Bcfg2/Server/Plugins/Darcs.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/FileProbes.py src/lib/Bcfg2/Server/Plugins/Fossil.py src/lib/Bcfg2/Server/Plugins/Git.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/Server/Plugins/__init__.py src/lib/Bcfg2/Server/__init__.py src/sbin/bcfg2-build-reports src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * tools: write all changed files when migrating perms to modeChris St. Pierre2013-04-161-2/+3
| |
* | Merge branch '1.4.x'Chris St. Pierre2013-04-232-0/+88
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/bcfg2-server.install doc/server/plugins/grouping/metadata.txt src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/Portage.py src/lib/Bcfg2/Client/Tools/RcUpdate.py src/lib/Bcfg2/Client/Tools/YUM24.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Client/Tools/launchd.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/models.py src/lib/Bcfg2/Utils.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * Merge branch 'master' into 1.4.xChris St. Pierre2013-02-201-0/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/contributors.txt schemas/bundle.xsd src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/Encryption.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/TemplateHelper.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py tools/bcfg2-profile-templates.py
| * | added README for 1.4 upgrade toolsChris St. Pierre2013-02-051-0/+6
| | |
| * | Decisions: use StructFile instead of host- or group-specific XML filesChris St. Pierre2013-02-051-0/+82
| | |
* | | migrate_dbstats: Fix traceback found by jontenSol Jerome2013-03-221-0/+3
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | migrate_perms_to_mode.py: handle info.xml files for SSLCAChris St. Pierre2013-03-211-1/+1
| | |
* | | migrate_perms_to_mode.py: gracefully handle unparseable XML filesChris St. Pierre2013-03-201-2/+12
| | |
* | | migrate_perms_to_mode.py: really seriously handle nested Path tagsChris St. Pierre2013-03-201-1/+1
| | |
* | | migrate_perms_to_mode.py: migrate SSHbase/info.xmlChris St. Pierre2013-03-201-1/+1
| | |
* | | migrate_info.py: fixed import of info/:info parsing regexChris St. Pierre2013-03-151-2/+4
| | |
* | | migrate_perms_to_mode.py: fixed migration of nested BoundPath entries in bundlesChris St. Pierre2013-03-151-3/+1
| |/ |/|
* | add old schema to migrationTim Laszlo2013-01-291-0/+9
|/
* Reporting: Allow interactions without a profileTim Laszlo2012-10-291-6/+0
|
* tools: Add migrate_perms_to_mode toolSol Jerome2012-10-262-0/+72
| | | | | | | Helps users to migrate their repositories from the perms attribute to mode. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* migrate_info: Remove trailing whitespaceSol Jerome2012-10-261-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Default to a url friendly group nameTim Laszlo2012-10-171-1/+1
|
* add a higher timeout for caching certain objectsTim Laszlo2012-10-171-1/+1
|
* Revert "migrate_db: skip db lookup since all should be known"Tim Laszlo2012-10-171-5/+5
| | | | | | | | | This caused data duplication on migration. This reverts commit 9707ee8e4c495133f329000d3e5b89d8b84e5998. Conflicts: src/lib/Bcfg2/Reporting/models.py
* Remove perms use in migrate_dbstats.pyTim Laszlo2012-10-171-1/+1
|
* migrate_db: skip db lookup since all should be knownTim Laszlo2012-10-151-5/+5
|
* migrate_db: add timing for importsTim Laszlo2012-10-151-1/+8
|
* migrate_db: set the current interaction after importTim Laszlo2012-10-151-0/+8
|
* migrate: create FilePerms objects earlyTim Laszlo2012-10-121-17/+38
|
* Remove unnecessary transaction.commit_manuallyTim Laszlo2012-10-121-1/+0
|