Browse code

Fix Rackspace cloud user, remove dupe /home/vagrant definition

Charles Hooper authored on 2013/03/27 10:41:06
Showing 1 changed files
... ...
@@ -52,6 +52,18 @@ class ec2 {
52 52
 }
53 53
 
54 54
 class rax {
55
+	user { "vagrant":
56
+		name => "ubuntu",
57
+		ensure => present,
58
+		comment => "Vagrant User",
59
+		shell => "/bin/bash",
60
+		home => "/home/ubuntu",
61
+	}
62
+	file { "/home/vagrant":
63
+		ensure => link,
64
+		target => "/home/ubuntu",
65
+		require => User["vagrant"],
66
+	}
55 67
 }
56 68
 
57 69
 class docker {
... ...
@@ -112,12 +124,6 @@ class docker {
112 112
         require => Exec["copy-docker-bin"],
113 113
     }
114 114
 
115
-    file { "/home/vagrant":
116
-        ensure => directory,
117
-        mode => 644,
118
-        require => User["vagrant"],
119
-    }
120
-
121 115
     file { "/home/vagrant/.profile":
122 116
         mode => 644,
123 117
         owner => $vagrant_user,