mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-06 20:13:11 +02:00
Added local and openstack providers
This commit is contained in:
parent
6a72539305
commit
15b0d1f094
3 changed files with 90 additions and 1 deletions
68
app/static/provider-local.vue
Normal file
68
app/static/provider-local.vue
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="id_server">
|
||||||
|
Enter the IP address of your server: (or use localhost for local installation):
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="form-control"
|
||||||
|
id="id_server"
|
||||||
|
name="server"
|
||||||
|
v-model="server"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="id_ssh_user">
|
||||||
|
What user should we use to login on the server? (note: passwordless login required, or ignore if you're deploying to localhost)
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="form-control"
|
||||||
|
id="id_ssh_user"
|
||||||
|
name="ssh_user"
|
||||||
|
v-model="ssh_user"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="id_endpoint">
|
||||||
|
Enter the public IP address or domain name of your server: (IMPORTANT! This is used to verify the certificate)
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="form-control"
|
||||||
|
id="id_endpoint"
|
||||||
|
name="endpoint"
|
||||||
|
v-model="endpoint"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<button v-on:click="submit"
|
||||||
|
v-bind:disabled="!is_valid" class="btn btn-primary" type="button">Next</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
module.exports = {
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
server: null,
|
||||||
|
ssh_user: null,
|
||||||
|
endpoint: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
is_valid() {
|
||||||
|
return this.server && this.ssh_user && this.endpoint;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submit() {
|
||||||
|
this.$emit("submit", {
|
||||||
|
server: this.server,
|
||||||
|
ssh_user: this.ssh_user,
|
||||||
|
endpoint: this.endpoint
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
19
app/static/provider-openstack.vue
Normal file
19
app/static/provider-openstack.vue
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
Download OpenStack credentials from the OpenStack dashboard->Compute->API Access and source it in the shell (eg:
|
||||||
|
source /tmp/dhc-openrc.sh)
|
||||||
|
</p>
|
||||||
|
<button v-on:click="submit" class="btn btn-primary" type="button">Next</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
module.exports = {
|
||||||
|
methods: {
|
||||||
|
submit() {
|
||||||
|
this.$emit("submit");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -67,7 +67,9 @@ module.exports = {
|
||||||
'hetzner': window.httpVueLoader('/static/provider-hetzner.vue'),
|
'hetzner': window.httpVueLoader('/static/provider-hetzner.vue'),
|
||||||
'azure': window.httpVueLoader('/static/provider-azure.vue'),
|
'azure': window.httpVueLoader('/static/provider-azure.vue'),
|
||||||
'linode': window.httpVueLoader('/static/provider-linode.vue'),
|
'linode': window.httpVueLoader('/static/provider-linode.vue'),
|
||||||
'cloudstack': window.httpVueLoader('/static/provider-cloudstack.vue')
|
'cloudstack': window.httpVueLoader('/static/provider-cloudstack.vue'),
|
||||||
|
'openstack': window.httpVueLoader('/static/provider-openstack.vue'),
|
||||||
|
'local': window.httpVueLoader('/static/provider-local.vue')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue