Script started on ven 03 mar 2017 14:49:27 CET root@server:~# fuss-server create WARNING:root:Interface is not available WARNING:root:Interface is not available ################################################################################ Please insert Local network address The format is netaddr/cidr, ex. 192.168.1.0/24 Your choice? 10.0.0.0/8 ################################################################################ Please insert Domain name The domain for this network, ex. 'institute.lan' Your choice? scuola.lan ################################################################################ Please insert Windows Workgroup The Windows WorkGroup for this network, ex. 'institute' Your choice? scuola ################################################################################ Please insert DHCP Server Range The IP range of address given by the DHCP Server, ex. '192.168.1.10 192.168.1.100' Your choice? 10.0.0.10 10.0.0.100 ################################################################################ Please insert Master password The master password for this server Password: ################################################################################ Please insert Locality Locality e/o address name, ex. 'Bolzano' Your choice? Bolzano ################################################################################ Please insert WAN Interface The WAN interface(s) of the server, ex. 'eth0' Your choice? eth0 ################################################################################ Please insert LAN Interfaces The LAN interface(s) of the server, ex. 'eth1 eth2' Your choice? eth1 PLAY [Configure a FUSS Server.] ************************************************ TASK [setup] ******************************************************************* ok: [localhost] TASK [common : Clean package list] ********************************************* TASK [common : Install base packages] ****************************************** included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost TASK [common : Install package jed,less,screen,links,wget,rsync,bzip2,unzip,strace,lsof by apt] *** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package tcpdump,netcat,iputils-arping,nmap,iproute2,mtr-tiny,traceroute by apt] *** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package netmask,iptraf-ng,dnsutils,python-ipaddr by apt] ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package iotop,iftop,atop,hdparm,pciutils by apt] ******** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package apt-listchanges,sudo,molly-guard by apt] ******** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package apticron,witalian,easy-rsa,ssl-cert by apt] ***** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package tiger,chkrootkit,libpam-cracklib by apt] ******** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Install package openssl,clusterssh,fuse by apt] ***************** ok: [localhost] TASK [common : register packages] ********************************************** TASK [common : Read all interface addresses + subnet] ************************** changed: [localhost] => (item=eth0) changed: [localhost] => (item=eth1) TASK [common : Load all network configuration into yaml] *********************** ok: [localhost] TASK [common : Set common facts] *********************************************** ok: [localhost] TASK [common : Set additional convenience facts] ******************************* ok: [localhost] TASK [common : Create Credentials directory] *********************************** changed: [localhost] TASK [common : Check permissions on configuration file] ************************ changed: [localhost] TASK [ssl-ca-init : Create CA directory on server] ***************************** changed: [localhost] TASK [ssl-ca-init : Generate Certificates with issue-host-ssl-cert script] ***** ok: [localhost] => (item= creating server.scuola.lan-cert.pem and server.scuola.lan-key.pem) => { "item": " creating server.scuola.lan-cert.pem and server.scuola.lan-key.pem", "msg": " creating server.scuola.lan-cert.pem and server.scuola.lan-key.pem" } TASK [ssl-ca-init : Copy CA data on the server CA directory] ******************* changed: [localhost] TASK [ssl-ca-init : install SSL CA file] *************************************** changed: [localhost] TASK [ssl-ca-init : install SSL cert file] ************************************* changed: [localhost] TASK [ssl-ca-init : install SSL key file] ************************************** changed: [localhost] TASK [ldap-base : fail] ******************************************************** skipping: [localhost] TASK [ldap-base : include] ***************************************************** included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost TASK [ldap-base : Install package ldap-utils by apt] *************************** ok: [localhost] TASK [ldap-base : register packages] ******************************************* TASK [ldap-base : install SSL CA certificate] ********************************** ok: [localhost] TASK [ldap-base : Setup /etc/ldap/ldap.conf] *********************************** changed: [localhost] TASK [slapd : fail] ************************************************************ skipping: [localhost] TASK [slapd : Look if slapd.conf file is already there] ************************ ok: [localhost] TASK [slapd : Preseed debconf slapd admin password, first time] **************** changed: [localhost] TASK [slapd : Preseed debconf slapd admin password, second time] *************** changed: [localhost] TASK [slapd : Preseed debconf LDAP base DN] ************************************ changed: [localhost] TASK [slapd : include] ********************************************************* included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost TASK [slapd : Install package slapd,slapd-smbk5pwd,gosa-schema by apt] ********* ok: [localhost] TASK [slapd : register packages] *********************************************** TASK [slapd : Generate hashed password] **************************************** ok: [localhost] TASK [slapd : Is there slapd.d directory] ************************************** ok: [localhost] TASK [slapd : Stopping slapd server] ******************************************* changed: [localhost] TASK [slapd : Move away slapd.d directory] ************************************* changed: [localhost] TASK [slapd : Give slapd user access to server certificate key] **************** changed: [localhost] TASK [slapd : adding ldaps:/// to SLAPD_SERVICES in /etc/default/slapd] ******** changed: [localhost] TASK [slapd : Setup /etc/ldap/slapd.conf] ************************************** changed: [localhost] TASK [slapd : Starting slapd server] ******************************************* changed: [localhost] TASK [slapd : include] ********************************************************* included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost TASK [slapd : Install package ldapvi by apt] *********************************** ok: [localhost] TASK [slapd : register packages] *********************************************** TASK [slapd : Setup .ldapvirc] ************************************************* changed: [localhost] TASK [slapd : include] ********************************************************* included: /usr/share/fuss-server/includes/install-package-apt.yml for localhost TASK [slapd : Install package smbldap-tools,samba-common-bin,python-smbpasswd by apt] *** ok: [localhost] TASK [slapd : register packages] *********************************************** TASK [slapd : Setup /etc/smbldap-tools/smbldap_bind.conf] ********************** changed: [localhost] TASK [slapd : Get SID value] *************************************************** ok: [localhost] TASK [slapd : Setup /etc/smbldap-tools/smbldap.conf] *************************** changed: [localhost] TASK [slapd : Check if DIT is already done] ************************************ ok: [localhost] TASK [slapd : Get hashed password from /etc/ldap/slapd.conf (for idempotency)] * ok: [localhost] TASK [slapd : debug] *********************************************************** ok: [localhost] => { "msg": "Hashed pass = {u'changed': False, u'end': u'2017-03-03 14:50:06.775500', 'failed': False, u'stdout': u'{SSHA}EwEUDDMBm8sux5+Os5dm7sDs/giJ3uFv', u'cmd': u\"grep '# rootpw' /etc/ldap/slapd.conf|awk '{print $3}'\", u'rc': 0, u'start': u'2017-03-03 14:50:06.770599', u'stderr': u'', u'delta': u'0:00:00.004901', 'stdout_lines': [u'{SSHA}EwEUDDMBm8sux5+Os5dm7sDs/giJ3uFv'], 'failed_when_result': False, u'warnings': []}" } TASK [slapd : Copy DIT template] *********************************************** changed: [localhost] TASK [slapd : Create DIT] ****************************************************** fatal: [localhost]: FAILED! => {"changed": false, "cmd": "ldapadd -c -Y EXTERNAL -H ldapi:/// -f /etc/fuss-server//Credentials/init_tree.ldif", "delta": "0:00:00.016511", "end": "2017-03-03 14:50:07.144943", "failed": true, "failed_when_result": true, "rc": 32, "start": "2017-03-03 14:50:07.128432", "stderr": "SASL/EXTERNAL authentication started\nSASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth\nSASL SSF: 0\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)\nldap_add: No such object (32)", "stdout": "adding new entry \"ou=Users,dc=scuola,dc=lan\"\n\nadding new entry \"ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"ou=Computers,dc=scuola,dc=lan\"\n\nadding new entry \"ou=Idmap,dc=scuola,dc=lan\"\n\nadding new entry \"sambaDomainName=scuola,dc=scuola,dc=lan\"\n\nadding new entry \"uid=admin,ou=Users,dc=scuola,dc=lan\"\n\nadding new entry \"uid=nobody,ou=Users,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Domain Admins,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Domain Users,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Domain Guests,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Domain Computers,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Administrators,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Account Operators,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Print Operators,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Backup Operators,ou=Groups,dc=scuola,dc=lan\"\n\nadding new entry \"cn=Replicators,ou=Groups,dc=scuola,dc=lan\"", "stdout_lines": ["adding new entry \"ou=Users,dc=scuola,dc=lan\"", "", "adding new entry \"ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"ou=Computers,dc=scuola,dc=lan\"", "", "adding new entry \"ou=Idmap,dc=scuola,dc=lan\"", "", "adding new entry \"sambaDomainName=scuola,dc=scuola,dc=lan\"", "", "adding new entry \"uid=admin,ou=Users,dc=scuola,dc=lan\"", "", "adding new entry \"uid=nobody,ou=Users,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Domain Admins,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Domain Users,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Domain Guests,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Domain Computers,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Administrators,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Account Operators,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Print Operators,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Backup Operators,ou=Groups,dc=scuola,dc=lan\"", "", "adding new entry \"cn=Replicators,ou=Groups,dc=scuola,dc=lan\""], "warnings": []} RUNNING HANDLER [slapd : restart slapd with slapd.conf] ************************ changed: [localhost] to retry, use: --limit @/usr/share/fuss-server/create.retry PLAY RECAP ********************************************************************* localhost : ok=60  changed=23  unreachable=0 failed=1  root@server:~# exit Script done on ven 03 mar 2017 14:50:10 CET