Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / unix.py @ 38cf4599

History | View | Annotate | Download (4.5 kB)

# Date Author Comment
173022fb 07/07/2013 04:16 pm Nikos Skalkotos

Add the sysprep message printing in the decorator

Since all sysprep functions output a message when they get executed,
add the message printing functionality to the sysprep decorator

121f3bc0 06/11/2013 05:41 pm Nikos Skalkotos

Code Cleanup

  • Prefix all private methods with _
  • Write missing docstrings
  • Move all public methods above the private ones
  • Add module docstrings where missing
  • Define source code encodings on all modules
71b0ab28 06/07/2013 03:24 pm Nikos Skalkotos

Move mount/umount from image to os_type module

a0909794 05/23/2013 04:57 pm Nikos Skalkotos

In cleanup_mail sysprep check if mail dirs exist

Check if /var/spool/mail exists before trying to remove the content
of the directory.

6df939f7 05/21/2013 10:47 am Nikos Skalkotos

In cleanup_userdata sysprep check if /home exists

2dcd42b7 04/25/2013 01:49 pm Nikos Skalkotos

Move linux specific code from unix.py to linux.py

88f83027 03/28/2013 02:26 pm Nikos Skalkotos

Add missing docstrings

61d14323 03/22/2013 02:57 pm Nikos Skalkotos

Clean-up the code using flake8

e36b5b14 01/04/2013 02:14 pm Nikos Skalkotos

Treat kamaki config files as sensitive data

When cleaning up sensive user data on unix systems, remove .kamakirc
and .kamaki.history too.

e1e7b843 08/29/2012 11:54 am Nikos Skalkotos

Fix cleanup_userdata sysprep

The function used to ignore directories when cleaning sensitive data

af45cf2f 08/22/2012 12:18 pm Nikos Skalkotos

Fix minor pep8 error

5f7e1e0c 08/08/2012 03:40 pm Nikos Skalkotos

Do not allow empty USERS metadata fields

If snf-image-creator does not find any passworded user, then the
USERS metadata field is not created at all.

f99fe99d 06/28/2012 01:20 am Nikos Skalkotos

Fix pep8 errors

Fixed many `E127 continuation line over-indented for visual indent'
errors

564a18ce 06/27/2012 12:59 pm Nikos Skalkotos

Fix a bug in _get_passworded_users method in Unix

The method used a wrong warning output function

e77e66a9 06/05/2012 07:08 pm Nikos Skalkotos

Unify output by creating a seperated output module

All image-creator components now output messages using an instance
of one of the output classes.

5886f568 05/18/2012 07:14 pm Nikos Skalkotos

Remove get_metadata() from os_type classes

The metadata are collected in the constructor and are saved in the
meta variable. This way they can be accessed and altered by the
sysprep methods. There are cases where some metadata are not valid
and need to be updated after a sysprep action is performed. For...

50273553 04/19/2012 04:05 pm Nikos Skalkotos

Improve help msg for remove-user-accounts sysprep

f165adc0 04/10/2012 04:38 pm Nikos Skalkotos

Add options for enabling/disabling sysprep tasks

Also merge data_cleanup tasks with syspreps and did a major cleanup

4cab6d62 04/09/2012 03:08 pm Nikos Skalkotos

Fix pep8 error

a9c9d939 04/06/2012 06:08 pm Nikos Skalkotos

Add cleanup method that removes user accounts

This method will remove all users that have id over 1000. In most
systems this will remove all normal user accounts besides the first
one. This method will not run by default.

51fab9c9 04/05/2012 05:36 pm Nikos Skalkotos

Add cleanup method that locks all user accounts

0144d7c7 04/05/2012 04:26 pm Nikos Skalkotos

Add exclude_task decorator in os_type

This can be used to create a set of by default disabled data_cleanup
and sysprep tasks.

979096dd 03/24/2012 02:54 pm Nikos Skalkotos

Add silent mode option

All printing had to be reordered and now it is done from a central point.

3f70f242 03/21/2012 08:14 pm Nikos Skalkotos

Fix linux sysprep_acpid & remove output indents

22a6d232 03/20/2012 06:04 pm Nikos Skalkotos

Beautify program's output.

ae48a082 03/19/2012 12:26 pm Nikos Skalkotos

Fix license, copyright and pep8 infractions

f8119e65 03/13/2012 06:09 pm Nikos Skalkotos

Extend data_cleanup method in unix

  • Add more userdata to be cleaned
  • Prefix all data_cleanup methods with data_cleanup
c16922f7 03/13/2012 12:23 pm Nikos Skalkotos

Add cleanup_cache function in unix

This function will remove regular files under /var/cache

9297c398 03/11/2012 10:51 pm Nikos Skalkotos

Add mail and /var/tmp cleanup for unix systems

36e348b6 03/05/2012 04:13 pm Nikos Skalkotos

Fix a bug in get_passworded_users

8c574358 02/24/2012 03:29 pm Nikos Skalkotos

Major code revision

  • Add foreach_file function in OSBase. This is used by all cleanup
    methods
  • Add slackware class. This class derives from linux and overwrites the
    log cleanup behaviour. This is needed since slackware stores all
    package management info in /var/log/packages...
0d5a999d 02/22/2012 06:22 pm Nikos Skalkotos

Fix code for cleanup of image data

aa2062ba 02/20/2012 07:59 pm Nikos Skalkotos

Add OS specific classes