<commit_before>## Installation of dependent packages
    pip install gspread
    pip install oauth2client==1.5.2

## Getting the Signed Credentials from Google
1. Goto [Google Developers Console](https://console.developers.google.com/project) and create a new project or select the existing one.
2. In "Auth & API", enable it and create "Service account key". [Referral link](http://gspread.readthedocs.org/en/latest/oauth2.html)
3. Place the "service account key" file in addusers directory and update the name in settings.ini file.
4. Share the google-spreadsheet with the email-address found within the "service-account-key" file.
5. Get the spreadsheet id and put it in settings.ini file.

## Usecase
These scripts are to create user account and project on openstack. 
The script can be run from the node which has keystoneclient and novaclient installed.

## How to use template_settings.ini
Copy the template_settings.ini to settings.ini and then fill the fields required in that file.

`bash$ cp settings_template.ini settings.ini`

Here is a sample copy of setting.ini file:-

    [auth]
    admin_user = admin
    admin_pwd = <PASSWORD>
    admin_tenant = admin
    auth_url = https://mycontroller.org:5000/v2.0

    [nova]
    version = 2

    [templates]
    email_template = ./email-template.txt
    password_template = ./password-template.txt

    [output]
    email_path = ./user_emails/
    password_path = ./password_emails/

<commit_msg>update addusers README with postfix config<commit_after>## Installation of dependent packages
    pip install gspread
    pip install oauth2client==1.5.2

## Getting the Signed Credentials from Google
1. Goto [Google Developers Console](https://console.developers.google.com/project) and create a new project or select the existing one.
2. In "Auth & API", enable it and create "Service account key". [Referral link](http://gspread.readthedocs.org/en/latest/oauth2.html)
3. Place the "service account key" file in addusers directory and update the name in settings.ini file.
4. Share the google-spreadsheet with the email-address found within the "service-account-key" file.
5. Get the spreadsheet id and put it in settings.ini file.

## Usecase
These scripts are to create user account and project on openstack. 
The script can be run from the node which has keystoneclient and novaclient installed.

## How to use template_settings.ini
Copy the template_settings.ini to settings.ini and then fill the fields required in that file.

`bash$ cp settings_template.ini settings.ini`

Here is a sample copy of setting.ini file:-

    [auth]
    admin_user = admin
    admin_pwd = <PASSWORD>
    admin_tenant = admin
    auth_url = https://mycontroller.org:5000/v2.0

    [nova]
    version = 2

    [templates]
    email_template = ./email-template.txt
    password_template = ./password-template.txt

    [output]
    email_path = ./user_emails/
    password_path = ./password_emails/

## Mail Server Config

The mail server needs to have TLS enabled. If using postfix, add the 
following lines to /etc/postfix/main.cf:

smtpd_tls_cert_file = /path/to/cert/file
smtpd_tls_key_file = /path/to/key/file
smtpd_tls_security_level = may

If no certificate exists, one can be generated:
     openssl req -new -x509 -nodes -out /etc/postfix/postfix.pem -keyout /etc/postfix/postfix.pem -days 3650



{'fraction_non_alphanumeric': 0.08196230930302124, 'fraction_numerical': 0.01226443314388274, 'mean_word_length': 3.7165021156558535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645479', 'n_tokens_mistral': 1022, 'n_tokens_neox': 981, 'n_words': 376}