-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a72539
commit 15b0d1f
Showing
3 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters