Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/vyos/vyos-cloud-init


https://github.com/vyos/vyos-cloud-init

Small logging changes.

ce396ee2fcbe2eeac22e76ea1fc5b6aa01e4f298 authored over 12 years ago
Add a mock ec2 metadata server that can be used for testing with

d50bc13aa357f6c3fa9d55f89f3e6c006102f559 authored over 12 years ago
Passed along the extra config paths

02a8f1487d51dc8dda4ea61830420b225029268b authored over 12 years ago
1. Continue working on main 'init' method

2. Add the ability to take in multiple extra config files (mainly for debugging)
3. Move 'simple'...

4c56faf8d36e684f07340bcf9e37a48508c12a5a authored over 12 years ago
Cleanup pylint warning about line length.

842e109596188f8ef5eb4c75e6f692adfaacc93b authored over 12 years ago
Fix pylint error about the rmlist variable name being mis-named.

f06b5cbf6187dd90b90cc24d3f3c087fe51a6d07 authored over 12 years ago
Cleanup some of the logging (its a little to verbose).

7eab90c0c88854cc3984ca54d0790dbfe6fd883b authored over 12 years ago
Syntax + comment cleanups.

a2c80a6ae5eb064a6d69ca0a7b14056dc8504030 authored over 12 years ago
Add the ability to check if the metadata service is up before actually using it.

1. This is very useful for testing (until we have boto timeout in a more sane manner)

4a0bec74c7f59ee370f6622cacfad1638e255bcc authored over 12 years ago
1. When running, return the function results as well as a boolean that stated if it ran.

50ec3b78686ae812c44b22835bf1203c92f5e5e3 authored over 12 years ago
Removed this for now.

2d3dcfb5ffb7714dadb6d317f2c2675faf3e1845 authored over 12 years ago
1. Allow the built-in config to be passed in when getting the base config

2. Move the cloudinit util function that writes the command line url to a file to here.

b35772387cb9ae8232ec5986950ec6789f46b202 authored over 12 years ago
1. Cleanup the rm cur instance link variable name to match more of what it is

2. Allow on config reading the ability to pass in config files that over-ride the search for conf...

55771ac86ae46232aabc9ec7419e9da0782f9986 authored over 12 years ago
Show the timeout (useful to see this when debugging)

fcaaceaf73e2a2e524e76ef19e5e10c4c71ec1a4 authored over 12 years ago
1. Fixed datasource construction (switched param order)

2. Fixed up importing of modules to handle the failure case better
a. Also realized that using...

8c9148fda19a83bb6fe9476dff34788ccfc9f639 authored over 12 years ago
Fixed the constructor params

dd3b1ffcfb11527b3be0972d668c3de37b872b72 authored over 12 years ago
1. Removed the welcome message for now :-)

5917096c8c686b10cf24a0b4c63eb075726f87df authored over 12 years ago
1. Initial work on a unified program that will call into the new libraries.

Main features:

1. Use of argparse + subcommands to handle 'action' specific actions
a. Action...

9daaba92fbef013768cc7c601df012ef2eb49686 authored over 12 years ago
1. Revert the 'transform-' template back to 'config-' template for now.

2. Make the init class have a public 'read_cfg' which can be used to force cfg loading to occur (...

b84432fdd390e3bd239dda997e6fa8fad086e2bd authored over 12 years ago
Add comments as to what the special reference sections mean in log_cfgs

103e5fe784007a2ee3855031fd55d2470fa0d19c authored over 12 years ago
Fix include once always staying on, only turn it on until a include says to turn it back off, if one of those is encountered

fbe7a72b0d5d04cc148b683b7e22ac730af960a6 authored over 12 years ago
When logging is 'cycled' ensure that we call the logging reset routine first.

24eab2046f2daaaa1ddb09421949430fa18ba28e authored over 12 years ago
1. Simplify basic logging (which will not always be turned on in the new cloud init main entrypoint

2. Have the ability to reset the logging handlers
a. This seems needed when we initially have ba...

5e0bf173c870f0f732d68d9db338f40d1d0a6a5a authored over 12 years ago
Add created by or added by cloud-init lines when we modify or create files.

24b818fd7c26ccc4c31191c1ae274a5fff506038 authored over 12 years ago
Include link to netcf library in the comment.

1d6c6b6a97ca06f0044e7a3987d76519b4feee9e authored over 12 years ago
Adjust log message to say "open" instead of 'read' since this function can also post data...

80cd15a3d9734bf143d420c49a518d358c3569e3 authored over 12 years ago
1. Decreasing of logging in piping routing

2. Fixup of merge dict after found out that it depends on the src return for non dict types
3. On...

d2de0fbdcadd09a94ffb399e8969cc7bbcb66340 authored over 12 years ago
1. Add in a clean section that will remove the /var/lib/cloud dir and the cloud.log file (helpful for testing)

d42536f0c8a0e7eb84248c7f4f3264c317a9a04d authored over 12 years ago
1. Add a url response class that urlreading now returns (instead of a tuple).

a. This allows for more properties to be added as needed in the future, instead of being very ...

b6f158b8a55f37d9d2854ff0e566298b85cc0c89 authored over 12 years ago
Update the variable for comment positioning to be 'c_pos' (comment position) instead of 'hpos' (??)

bc5322d2bc81b2421ae8dfe1bb02fa2fd61fed51 authored over 12 years ago
1. Adjust the ubuntu network hostname writing to go through a standard write function

2. Add comment as to why we search for "#" when reading

47f9f64a03c90ea08b6e363f786dfee921345682 authored over 12 years ago
Added a new rhel distro that does the following.

1. Translate (some of) the ubuntu network format to the rhel format (until we have python netcf ...

4e5e0dadf07d52d92711ee674d98ee0ef523ea6a authored over 12 years ago
1. Remove rhel sysconfig for timezone, now have a rhel distro subclass

2. Remove private apt_get function, since it can just be the package_command public one.

a730063635236c4343f73e55ec491e28c4a2acfe authored over 12 years ago
Log handler + info that is about to be called

bcaa16409d7db7bc13456f8df47688e9e6f4f5ed authored over 12 years ago
Add todo to see if we should turn back off include once

f0a4bf58817b42f7cbb91fed97ccb412da4788c2 authored over 12 years ago
1. Allow for checking against lower case include types.

2. Perform lstrip on the payload, just incase people put spaces/whitespace before the type.

f90d81a118cc119cba7130b30f71ac1f0d0f409e authored over 12 years ago
Fix include on enabling, simplify statements around include skipping, allow for case insensitive include statements to be used

23bb80b3ae52836e2021d326d8b63d3230e06e52 authored over 12 years ago
Consistently use dashes instead of underscores for the transform names

860155034677c0d2b51c903b6affd6f7174afee6 authored over 12 years ago
1. Fix the welcome_msg name to welcome_message (oops)

2. Adjust that name in the cloud.cfg
3. Add in the ability to specify a dictionary that is the tr...

a2e75f6d01688026b7ccfe5d71a11fff6205a287 authored over 12 years ago
Update error messaging for when importing/registring a part-handler fails

71a661de85dc910c82c6769430232b555a86198a authored over 12 years ago
1. Ensure a that when a bad version is found, that it gets set to 1.

2. Increment part handler count even if it doesn't get registered (this shouldn't cause any probl...

005ff658c6f301303269e14dfef4c27ada5c3982 authored over 12 years ago
Rename user data obj, which is really a user data message object and add comments as to what the data items are used for

0bfb3f5e5b4475c1dcbdb5db95bfce97d97ffc6a authored over 12 years ago
Not config anymore, now a transform

71e8036e6534afbb871e864dba988541652dc400 authored over 12 years ago
Match the transform named final_msg by adding a _msg to the transform name.

af2bf6577dc17ff85c38f76fddf6f6c7fbad992b authored over 12 years ago
Remove default since it will never be called that way and apply default since its not currently being called that way

4a9bfce6a5dedd7702507e8810c39677c532e42f authored over 12 years ago
Allow url fetching to catch any other type of exceptions that occur

84abafd991389c533b40f00ab2fec76f744a2275 authored over 12 years ago
Let read_file_or_url util function have good defaults

fceec461dec835ecb23e75aafb84ee45710b6526 authored over 12 years ago
Capture the exceptions and just re-throw the last one on errors

e6d8fc5e581b7ab4830eb9005ca10cecf02d3636 authored over 12 years ago
Send in src line instead of stripped line.

8034ab85b03f31dce06b9c66ed03132c95b7875c authored over 12 years ago
Update ssh_util to have a parser class and a line entry class.

Also have a method that will parse the authorized key file.

This allows:

1. Testing of parsing ...

b71b42c9f99b97d6340a8274a249ed2c62ec7bfe authored over 12 years ago
Comments as to why we are using a csv parser and do some of the logic checks that are done for option extraction

54bbf3b7c59352ca8482abab5728d8621c9888fe authored over 12 years ago
Comments about checking if this is right, no longer needed

a5e15033e70ec3cea877879d0070480f6a7efe49 authored over 12 years ago
Fix logic issue with reading previous file for previous instance id, when the current file should be looked at instead

1154876da44e1fd4516807637c317ce9828fe08b authored over 12 years ago
Should be loaded not loading

fc026d6e7dd51ea8c04e081c821e086f89bf6291 authored over 12 years ago
Revert that last change for this file, it should be a string that is non-empty so checking against that is fine

9249e20d87ad7827405dfd04ec98c72955044d7f authored over 12 years ago
Check instance id against none, and not just empty/false/0/none since 0 or empty might be valid

a1f20dff76b00c7502f005c2b597f49c89cc2a09 authored over 12 years ago
Add comment as to why the cloud object/wrapper is useful

8c227a784b948b98d35a386da5d203bd54ea35e5 authored over 12 years ago
Add comment as to why this cfg class is useful

7d5a292d293e9ae4b06b6ee00926fe46b1d7ad73 authored over 12 years ago
Pass in the datasource as a option, instead of the lower level instance id.

This allows for others to use datasource functions if they desire to instead of being restricted...

457b9998d760150efb17658f9a0fd4816417577e authored over 12 years ago
When a handler version is set but to an unknown non-int convertable value, treat it as 1

c9c3de2fad73af119cf9002799a875c71fda7b7a authored over 12 years ago
They are handlers not mods ;)

37da8d7e9dc74e65537bd64ea406cdebe0a6b539 authored over 12 years ago
Update the cloud init requirements with comments as to why they are needed.

Also:

1. Add in boto as a requirement (used for ec2 metadata calls)
2. Add in pyyaml as a requi...

7b4208aa79514bb56fb5bf4c626df022c4ab02a5 authored over 12 years ago
If bringing up, return whatever the bring up result is, otherwise false.

76f722a9412a88dc8bfc38004f3676a3f2b37835 authored over 12 years ago
Add comment as to why we need to check for none/empty later when fetching an ipath.

45c510457910b7d0225d3bc20f372d8710cc1006 authored over 12 years ago
Have the top level distro class take paths instead of a runner.

This allows the following:

1. Let the ubuntu subclass construct its own runner with those paths ...

1a803c9f1f55095e1cf69bd4ca12bda0299b64b4 authored over 12 years ago
Remove the need to have transforms start with "cc_".

1. Just let them have no prefix (ie blank) unless this isn't wanted later.

75b46cc80c6a9ab65c3c7f430ffaa4157d0db369 authored over 12 years ago
Correct the mount options to use a comma separated list for the mount options (if any provided/selected)

68e710207900ff8d933da6f79adc84bce980685d authored over 12 years ago
After the moving of items to handler/__init__ reflect those references here.

1ddc33d3091d5518e29500d7db434d74182ce0f1 authored over 12 years ago
Add a restricted set of characters which can be used in filenames when cleaning them.

03745206b8e26bb7a3e7119abcd8a03d95dbc897 authored over 12 years ago
Allow the user data processor to be passed in.

This could and should be useful for unit testing.

60f176e13836d77616ae07774fda2139fde790fc authored over 12 years ago
Move the helper functions for handlers to the handler __init__ instead of being in here.

This class will now just contain user data parsing, leaving the handler running to happen elsewh...

db19f526b65f11ecabfbdbe86cb546881727d647 authored over 12 years ago
Make the top level __init__ similar to the other top level __inits__ where just util functions and base classes are defined there.

5597e947248ee7fbda17d3876206f1d45f97bc00 authored over 12 years ago
Content handlers does not need the paths variable anymore so removed that.

1e6455899af5532314d7244bbc660a0e34a84eff authored over 12 years ago
For the different base classes, ensure we are using the 'abc' module + appropriate annotations + metaclasses.

a4454ec81a44142db0c51ceb76b979ace4b1176e authored over 12 years ago
Unused import removed

1e330c73a24385133ae1d321451c61f16fee766b authored over 12 years ago
1. Add a constant for the "cc_" prefix, so that it can be easily changed if desired.

ec7aeebce20e6a71a6de0e1323b1311d5f160d56 authored over 12 years ago
1. Change to fixup handler instead of fixup module

2. Add logging of unknown content types + seperate payload logging detail message into a separate...

5395081ce719471dc1101feaf310417457ae5261 authored over 12 years ago
1. Change to fixup transform/form transform name

2. Check lowercase name against .py instead of unknown case.

c23ade677e59e67d4d84ee111e337a99d11271e2 authored over 12 years ago
Rename to fixup transform/fixup handler/form transform name instead of form mod*

1b5e8117d862743f8f66cd27462965cc6c89af90 authored over 12 years ago
Have the ensure file function be able to take in a file permission.

c409a80a9cb8ea2e972b085074bf54824e8e0ad2 authored over 12 years ago
1. Add comment as to what http proxy setting means

2. Adjust so file contents will join with a string instead of appending to something that might n...

5fefdecc1191cd96634063e7616f89b21f066203 authored over 12 years ago
Clean up this log statement to be more useful.

22ea7bb511232954949a6ffecce9d248117517f3 authored over 12 years ago
Allow file rendering to pass in a file permission when writing.

5ea974d4d334e947d8a32115522767bcb99dbc51 authored over 12 years ago
Adjust how config is extracted in that it now can be extracted via 3 different modes.

1. Restricted - which doesn't give back the system info (used by handlers/transforms/public cfg ...

95573f9d7aa53d9f4c5ba5e969775f9bc59cb5ae authored over 12 years ago
Fix pylint line length to big issue.

13e1b680838615d8d54657641f84e6247ef5aea6 authored over 12 years ago
For now just stick to using newline joining.

b6421a971006288e6c2edc0cf6771c8fef57a66d authored over 12 years ago
1. Remove content handler iid param, not used.

2. Ensure if iid is found that it is converted to a string before path joining.

f0c2776f4e48c6f88958c8ec0d5c8f72ab33cd3a authored over 12 years ago
Have the contents formed on a previous line which seems prettier.

5e51d844015160a63c1b4aa5afd39fc0701ed71f authored over 12 years ago
1. Remove path function, since we have a path class

2. Be explict with file perms (even though its duplicated)

86fb18047eeddb5c4d3950ffaa6927ddfba90565 authored over 12 years ago
Cleanups around the usage of the apt pipe line value.

1. Add a comment onto why this is done
2. Fix the usage of range to search the list and not a st...

838bb0650819f2a1e13312e627b5f4a949fe802d authored over 12 years ago
Some simple fixes that will make the python 3 translation easier

27e780535eedf7c7a2493c6d1b41e7898bf3d62f authored over 12 years ago
Some simple fixes that will make the python 3 translation easier

611d0cdecbf7b15713824be484e8e91ca889839d authored over 12 years ago
Some simple fixes that will make the python 3 translation easier

4a328b5629db121accd81de9ced4c4d69b038f9a authored over 12 years ago
Only set an env variable for instance id if we actually got one.

8d3c67458842d0c03d28f79cb02d19e32136f7ef authored over 12 years ago
Adjust the usage of map items() to iteritems() which will help later translation to python 3.

76f2e0e51dc29b7737ed3aee540749191465ae58 authored over 12 years ago
Adjust the usage of map items() to iteritems() which will help later translation to python 3.

cbf1438666fa275619811806ad7922a598ff5dce authored over 12 years ago
Adjust the usage of map items() to iteritems() which will help later translation to python 3.

d21afdbf0c89fbd9d49c47060f5245dfb53b0440 authored over 12 years ago
1. Add in one function that will do output redirection from config for a given mode.

2. Adjust the usage of items() to iteritems() which will help translation to python 3.

1156f457d8832649145e23074e35e3bea36d5948 authored over 12 years ago
Add the running of 2to3 via the makefile.

5c34aa4ec384c25056b76e71cae9afabd00f793b authored over 12 years ago
Fixups to ensure that pylint does not find anything major wrong.

450261a1fcf1f8929a2f7a25c2c278ba40689289 authored over 12 years ago