Starting from messages I saw when running:
vagrant up infrastructure
I searched the internet, to find a solution to the problem of having the
[vagrant@localhost ~]$ prompt instead of
[vagrant@infrastructure ~]$, that should show up, when running:
vagrant ssh infrastructure
From what I found, I have modified the
infrastructure.vm.box = "centos/7"
infrastructure.vm.box = "geerlingguy/centos7"
This fixes the issue of having the wrong prompt:
But does not solve the final problem of running the setup-hw-1.6.sh script; this is what I now get:
[vagrant@infrastructure ~] cd shared/ [vagrant@infrastructure shared] ls
ldap ldapconfig.py setup-hw-1.6.sh validate-hw-1.6.sh
[vagrant@infrastructure shared] ./setup-hw-1.6.sh Redirecting to /bin/systemctl start slapd.service Failed to start slapd.service: Unit not found. sudo: ldapadd: command not found sudo: ldapadd: command not found sudo: ldapadd: command not found Traceback (most recent call last): File "/home/vagrant/shared/ldapconfig.py", line 4, in <module> import ldap ImportError: No module named ldap [vagrant@infrastructure shared]
I hope somebody can help me solve this quite annoying problem.