Revision 3251a62c

b/MANIFEST.in
1
include image_creator/help/*.rst
b/image_creator/help/__init__.py
1
# Copyright 2012 GRNET S.A. All rights reserved.
2
#
3
# Redistribution and use in source and binary forms, with or
4
# without modification, are permitted provided that the following
5
# conditions are met:
6
#
7
#   1. Redistributions of source code must retain the above
8
#      copyright notice, this list of conditions and the following
9
#      disclaimer.
10
#
11
#   2. Redistributions in binary form must reproduce the above
12
#      copyright notice, this list of conditions and the following
13
#      disclaimer in the documentation and/or other materials
14
#      provided with the distribution.
15
#
16
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
# POSSIBILITY OF SUCH DAMAGE.
28
#
29
# The views and conclusions contained in the software and
30
# documentation are those of the authors and should not be
31
# interpreted as representing official policies, either expressed
32
# or implied, of GRNET S.A.
33

  
34
import sys
35
import os
36

  
37
def get_help_file(name):
38
    dirname = os.path.dirname(sys.modules[__name__].__file__)
39
    return "%s%s%s.rst" % (dirname, os.sep, name)
40

  
41
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
b/image_creator/help/configuration_tasks.rst
1
Configuration tasks performed during deployment
2
===============================================
3

  
4
Partition Table manipulation
5
----------------------------
6
During image deployment the last partiton is enlarged to use all
7
the available disk space. If SWAP property is present an extra
8
swap partition is also added.
9

  
10
File system Resize
11
------------------
12
This task enlarges the file system of the last partition to use
13
all the available partition space.
14

  
15
Swap partition configuration
16
----------------------------
17
If swap partition is added during the image deployment, the swap
18
partition is formated and a swap entry is added to the instance's
19
fstab.
20

  
21
SSH keys removal
22
----------------
23
All SSH keys found in the image are removed. For debian instance,
24
where the key creation is not perfored automatically, the keys
25
are recreated by this task.
26

  
27
Tempory disable Remote Desktop (RDP) connections
28
------------------------------------------------
29
RDP connections are temporarily disabled during windows
30
configuration. This is done because when sysprep runs, there is a
31
small time interval where the new password is not applied yet and
32
allowing RDP connections raises security conserns.
33

  
34
Perform SELinux file system relabeling
35
--------------------------------------
36
For redhat-based images, since the instance's disk is modified
37
during during deployment, a full SELinux file system relabeling
38
needs to be performed. This tasks triggeres a full file system
39
relabel at the next boot.
40

  
41
Hostname or Computer name assignment
42
------------------------------------
43
The instance name is assigned as hostname (or Computer Name for
44
Windows instances).
45

  
46
Change password
47
---------------
48
This task will change the password for the users specified by
49
the USERS property.
50

  
51
File Injection
52
--------------
53
The files specified by the PERSONALITY image property are
54
injected into the instances hard disk.
b/setup.py
35 35

  
36 36
import image_creator
37 37

  
38
from setuptools import setup
39

  
38
from setuptools import setup, find_packages
40 39

  
41 40
setup(
42 41
    name='snf_image_creator',
......
45 44
#    long_description=open('README.rst').read(),
46 45
    url='https://code.grnet.gr/projects/snf-image-creator',
47 46
    license='BSD',
48
    packages=['image_creator', 'image_creator.os_type',
49
              'image_creator.output'],
47
    packages = find_packages(),
50 48
    include_package_data=True,
51 49
    install_requires=['pbs', 'ansicolors', 'progress', 'pysendfile'],
52 50
    entry_points={

Also available in: Unified diff