Skip to content

Commit 15b0d1f

Browse files
committed
Added local and openstack providers
1 parent 6a72539 commit 15b0d1f

File tree

3 files changed

+90
-1
lines changed

3 files changed

+90
-1
lines changed

app/static/provider-local.vue

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<template>
2+
<div>
3+
<div class="form-group">
4+
<label for="id_server">
5+
Enter the IP address of your server: (or use localhost for local installation):
6+
</label>
7+
<input
8+
type="text"
9+
class="form-control"
10+
id="id_server"
11+
name="server"
12+
v-model="server"
13+
/>
14+
</div>
15+
<div class="form-group">
16+
<label for="id_ssh_user">
17+
What user should we use to login on the server? (note: passwordless login required, or ignore if you're deploying to localhost)
18+
</label>
19+
<input
20+
type="text"
21+
class="form-control"
22+
id="id_ssh_user"
23+
name="ssh_user"
24+
v-model="ssh_user"
25+
/>
26+
</div>
27+
<div class="form-group">
28+
<label for="id_endpoint">
29+
Enter the public IP address or domain name of your server: (IMPORTANT! This is used to verify the certificate)
30+
</label>
31+
<input
32+
type="text"
33+
class="form-control"
34+
id="id_endpoint"
35+
name="endpoint"
36+
v-model="endpoint"
37+
/>
38+
</div>
39+
<button v-on:click="submit"
40+
v-bind:disabled="!is_valid" class="btn btn-primary" type="button">Next</button>
41+
</div>
42+
</template>
43+
44+
<script>
45+
module.exports = {
46+
data: function() {
47+
return {
48+
server: null,
49+
ssh_user: null,
50+
endpoint: null
51+
}
52+
},
53+
computed: {
54+
is_valid() {
55+
return this.server && this.ssh_user && this.endpoint;
56+
}
57+
},
58+
methods: {
59+
submit() {
60+
this.$emit("submit", {
61+
server: this.server,
62+
ssh_user: this.ssh_user,
63+
endpoint: this.endpoint
64+
});
65+
}
66+
}
67+
};
68+
</script>

app/static/provider-openstack.vue

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<div>
3+
<p>
4+
Download OpenStack credentials from the OpenStack dashboard->Compute->API Access and source it in the shell (eg:
5+
source /tmp/dhc-openrc.sh)
6+
</p>
7+
<button v-on:click="submit" class="btn btn-primary" type="button">Next</button>
8+
</div>
9+
</template>
10+
11+
<script>
12+
module.exports = {
13+
methods: {
14+
submit() {
15+
this.$emit("submit");
16+
}
17+
}
18+
};
19+
</script>

app/static/provider-setup.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ module.exports = {
6767
'hetzner': window.httpVueLoader('/static/provider-hetzner.vue'),
6868
'azure': window.httpVueLoader('/static/provider-azure.vue'),
6969
'linode': window.httpVueLoader('/static/provider-linode.vue'),
70-
'cloudstack': window.httpVueLoader('/static/provider-cloudstack.vue')
70+
'cloudstack': window.httpVueLoader('/static/provider-cloudstack.vue'),
71+
'openstack': window.httpVueLoader('/static/provider-openstack.vue'),
72+
'local': window.httpVueLoader('/static/provider-local.vue')
7173
}
7274
};
7375
</script>

0 commit comments

Comments
 (0)