summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-10whitespace / indentation cleanupsScott Moser
These changes were pulled out of the previous merge (cc_yum_add_repo) as they were unrelated there. Re-applying them here.
2012-11-10add yum_add_repo configuration moduleScott Moser
Add in a configuration module that can write out the yum.repo format for those that want to hook into different repos for installing.
2012-11-101 pep8 and 1 pylint fixScott Moser
2012-11-10revert unrelated whitespace changes that creeped in.Scott Moser
2012-11-10sync with trunkScott Moser
2012-11-10Add 'migrator' for handling config name changes and consistencyJoshua Harlow
This migrator module does a few things * fixes filename markers that were written with a '-' in them to have an '_' instead * support renaming modules. Explicitly this handles the name change of 'apt-update-upgrade' to 'apt-configure' and 'package-update-upgrade-install' Also, just be more consistent everywhere where writing semaphore/marker files and use '_' instead of '-' (canon_sem_name).
2012-11-10update ChangeLogScott Moser
LP: #1076811
2012-11-10Sudoers.d creation cleanups + tests.Joshua Harlow
2012-11-09Fix the merging of group configuration.Joshua Harlow
2012-11-09Fix the merging of group configurationJoshua Harlow
when that group configuration is a dict => members. LP: #1077245
2012-11-09Merge the yaml/cloud config examples checking tool.Joshua Harlow
2012-11-09Fix pep8 warnings.Joshua Harlow
2012-11-09Fix the fqdn/hostname case for rhel and ubuntuJoshua Harlow
where rhel uses the fqdn for its config while ubuntu uses the short hostname.
2012-11-08Forgot the test!Joshua Harlow
2012-11-08Fix the case where on a redhat based systemJoshua Harlow
the fully qualified domain name should end up in /etc/sysconfig/network by passing the fqdn to the update and set hostname methods and using it accordingly. LP: #1076759
2012-11-08Merge fix for distro config not being Joshua Harlow
reflected when running in the init stage after user-data has been loaded.
2012-11-08Ensure that at needed stages the local variablesJoshua Harlow
of the init class are reset so that when they are regenerated that they will use the updated data instead of using previous data (since they weren't reset). LP: #1076811
2012-11-08Add non-zero exit code whenJoshua Harlow
bad yamls are found instead of returning zero in that case.
2012-11-08improve zsh support in tools/Z99-cloud-locale-test.shScott Moser
This change does 3 things: * revert the fix from revno 697 * minor clean up some local variable usage and definition * make Z99-cloud-locale-test.sh actually work when shell is zsh the last is done by detecting if this is zsh, and if so, changing the zsh behavior for this function to emulate sh. As a result of the '-L' in 'emulate -L sh', we have no negative affect on the user's shell. LP: #1073077
2012-11-08work with zsh by using 'emulate -L sh'.Scott Moser
This makes zsh act like 'sh', but only for the function local function. This way, we do not affect the user's shell, but get the behavior we want.
2012-11-08remove unused variable 'cr'. fix usage of 'value' to local 'val'Scott Moser
2012-11-08revert old zsh fix (revno 697)Scott Moser
2012-11-071. Ensure that the sem_path exists andharlowja
is actually a valid value returned. 2. Adjust variable naming
2012-11-071. Check the name and not the full pathharlowja
when applying the canon routine. 2. Add in a function to migrate legacy semaphores to new semaphores.
2012-11-07Start adding a 'migrator' moduleJoshua Harlow
that can be used to aid in the moving of older versions of cloud-inits data to newer versions of cloud-inits data. 1. Move the semaphores for the current instance to there canonicalized names and use the canonicalized in the file 'locking' code
2012-11-07Add a makefile yaml checking targetJoshua Harlow
and fix the cases where the cc yaml is not correct.
2012-11-071. Rebased with trunkJoshua Harlow
2. Added example cloud-config 3. Added functioning test for yum config
2012-11-07remove dead code from DataSourceEc2Scott Moser
2012-11-07test and path cleanups.Joshua Harlow
1. Remove the usage of the path.join function now that all code should be going through the util file methods (and they can be mocked out as needed). 2. Adjust all occurences of the above join function to either not use it or replace it with the standard os.path.join (which can also be mocked out as needed) 3. Fix pylint from complaining about the tests folder 'helpers.py' not being found. 4. Add a pylintrc file that is used instead of the options hidden in the 'run_pylint' tool.
2012-11-07trivial: -name first is faster due to no need for statScott Moser
2012-11-07Add a more generic package install mechansimScott Moser
This splits code in apt_update_upgrade into 'apt-update-upgrade' and 'apt-configure' and 'package-update-upgrade-install'. The 'package-update-upgrade-install' then uses the generic distro package mechanisms for acheiving the same goal. Also, adjusts some of the reboot backoffs and log flushing/sleeping that was happening there.
2012-11-07adjust documentation to account for apt/package aliasesScott Moser
2012-11-07merge from trunkScott Moser
2012-11-07add ChangeLog entry Scott Moser
2012-11-07update config to address name changeScott Moser
2012-11-07fix pep8 warningsScott Moser
2012-11-07support unicode in user-data input of unknown typesJoshua Harlow
Fix the case where a unknown type is seen and it has contents which are in unicode. That caused python to blow-up when this happens since 'string-escape' doesn't work on unicode (at least in 2.6). LP: #1075756
2012-11-06Do the append after escape.Joshua Harlow
2012-11-06Use a method instead + at leastJoshua Harlow
attempt the unicode-escape path.
2012-11-06Fix the case where a unknown type is seen andJoshua Harlow
it has contents which are in unicode which seems to cause python to blow-up when this happens since 'string-escape' doesn't work on unicode (at least in 2.6). LP: #1075756
2012-11-06tools/Z99-cloud-locale-test.sh: avoid warning when shell is zshScott Moser
LP: #1073077
2012-10-27Helpful cleanups.harlowja
1. Remove the usage of the path.join function now that all code should be going through the util file methods (and they can be mocked out as needed). 2. Adjust all occurences of the above join function to either not use it or replace it with the standard os.path.join (which can also be mocked out as needed) 3. Fix pylint from complaining about the tests folder 'helpers.py' not being found 4. Add a pylintrc file that is used instead of the options hidden in the 'run_pylint' tool.
2012-10-23use only util methods for reading/loading/appending/peekingScott Moser
Use only util methods for reading/loading/appending/peeking at files since it is likely soon that we will add a new way of adjusting the root of files read, also it is useful for debugging to track what is being read/written in a central fashion.
2012-10-23Add helpers for wrapping file operationsScott Moser
Add a new example test that will patch utils and os functions so that they can be 'retargeted' to a temporary directory, which allows us the ability to run a full set of cloud-init stages. Neat things: 1. All cloud-init code is unchanged (as long as it goes through the utils functions for most functionality) 2. Allows for a natural way to setup a temporary directory then patch the new directory as the new 'root' and then run cloud-init stages and then check the contents of what was placed as desired. Note: This is now exposing what I think was just an issue in ./tools/run-pylint. ./tools/run-pylint ./tests/unittests/test_filters/test_launch_index.py and ./tools/run-pylint ./tests/unittests/test_simple_run was always failing, but now I'm seeing errors. need to fix that. any tests that 'import helper' have issues.
2012-10-23No need for the get defaultJoshua Harlow
users groups function when its provided by the get user function.
2012-10-23multipart or cloud-config-archive, do not fail on unknown headersScott Moser
LP: #1065116
2012-10-23restart landscape after config or installThomas Herve
LP: #1070345
2012-10-23Make sure that /etc/sudoers.d is used by /etc/sudoersScott Moser
Create /etc/sudoers.d if not present. Attempt to determine if /etc/sudoers.d will be used by /etc/sudoers. If determined not, then add a line to /etc/sudoers.
2012-10-23Restart landscape at the end of the configurationThomas Hervé
2012-10-23tweak default ubuntu userScott Moser