oar-team / oar-vagrant

Using Vagrant to test OAR's different flavors of installation
http://oar.imag.fr/dokuwiki/doku.php?id=wiki:oar-vagrant
GNU General Public License v2.0
1 stars 0 forks source link

centos 7: /home/vagrant/.ssh does not exist #6

Closed npf closed 9 years ago

npf commented 9 years ago

On the frontend we use vagrant's unsecure key, but on centos 7 /home/vagrant/.ssh does not exist.

==> frontend: ## ==> frontend: ## create some users ==> frontend: ## ==> frontend: + for i in '{1..3}' ==> frontend: + adduser -N user1 ==> frontend: + chpasswd ==> frontend: + echo user1:vagrant ==> frontend: + cp -a /home/vagrant/.ssh /home/user1/ ==> frontend: cp: cannot stat '/home/vagrant/.ssh': No such file or directory The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.

npf commented 9 years ago

Removing `config.ssh.insert_key = false' fixes this issue, but break the script in serveral places later.

Bizarre also that it works ok with centos6 even with `config.ssh.insert_key = false'.

npf commented 9 years ago

The key is there now, but I still have strange errors... hangs at the "Configuring and enabling network interfaces..." stage, or errors:

sed: can't read /etc/sysconfig/network-scripts/ifcfg-eth1: No such file or directory

or cant read /tmp/ifcfg-ethX ..