Skip to content

Commit 5d1d6e6

Browse files
authored
Merge pull request #2646 from olehermanse/module_dev
Getting started: Changed hub IP
2 parents d82ad19 + 5b06f3e commit 5d1d6e6

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

guide/getting-started-with-cfengine-build/installation.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ For example, in Digital Ocean, the username is `root`, and the IP might be `128.
128128

129129
![](digital-ocean.png)
130130

131-
**Note:** In the rest of this tutorial, replace the IP address we use in the examples, `192.168.56.1` with that IP.
131+
**Note:** In the rest of this tutorial, replace the IP address we use in the examples, `192.168.56.2` with that IP.
132132

133133
**Using Vagrant and Virtualbox:**
134134

@@ -143,13 +143,13 @@ Come back to this tutorial after you have completed the installation and setup o
143143
Test that ssh works:
144144

145145
```
146-
146+
147147
```
148148

149149
Save the host in `cf-remote` so you can copy-paste our later commands:
150150

151151
```
152-
$ cf-remote save -H [email protected].1 --role hub --name hub
152+
$ cf-remote save -H [email protected].2 --role hub --name hub
153153
```
154154

155155
The host is now in a `cf-remote` group called `hub`, so we don't have to type the username and IP, for example:
@@ -161,7 +161,7 @@ $ cf-remote info -H hub
161161
Shows this output:
162162

163163
```
164-
164+
165165
OS : ubuntu (debian)
166166
Architecture : x86_64
167167
CFEngine : Not installed
@@ -181,7 +181,7 @@ $ cf-remote install --hub hub --bootstrap hub
181181

182182
Open the CFEngine Web UI in a web browser by clicking this link, or typing the appropriate IP in the address bar:
183183

184-
https://192.168.56.1/
184+
https://192.168.56.2/
185185

186186
You might get warnings about an insecure connection or invalid certificate.
187187
At this point, your hub has a self signed certificate, which means there is no certificate authority that can verify which server you are talking to.

guide/getting-started-with-cfengine-build/installation/vagrant.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Vagrant.configure("2") do |config|
7777
# Ubuntu 20.04 VM, for CFEngine Enterprise Hub:
7878
config.vm.define "hub", autostart: false do |hub|
7979
hub.vm.box = "ubuntu/focal64"
80-
hub.vm.network "private_network", ip: "192.168.56.1"
80+
hub.vm.network "private_network", ip: "192.168.56.2"
8181
hub.ssh.insert_key = true
8282
hub.vm.provider "virtualbox" do |v|
8383
v.memory = 2048
@@ -90,7 +90,7 @@ end
9090
The `Vagrantfile` above does some important things:
9191

9292
* Defines a Ubuntu 20.04 Virtual machine called `hub`
93-
* Sets its IP address to be `192.168.56.1`
93+
* Sets its IP address to be `192.168.56.2`
9494
* Sets how much memory and CPU cores we want the VM to have
9595
* Copies the `id_rsa.pub` public key into the host when it starts, so we can use `ssh`
9696

guide/getting-started-with-cfengine-build/modules-from-cfengine-build.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ $ cf-remote deploy
119119
We did this in the first part of the series, while installing CFEngine, but if you haven't you can do it like this:
120120

121121
```
122-
$ cf-remote save -H [email protected].1 --role hub --name hub
122+
$ cf-remote save -H [email protected].2 --role hub --name hub
123123
```
124124

125125
(Replace SSH username and IP with what works on your hub).
@@ -129,7 +129,7 @@ $ cf-remote save -H [email protected] --role hub --name hub
129129
Open your web browser and enter the IP address of your hub in the address bar to go the Mission Portal web UI.
130130
For example:
131131

132-
https://192.168.56.1/
132+
https://192.168.56.2/
133133

134134
(Log in with username `admin` and password `admin`, or whatever you changed it to when you first logged into your hub).
135135

guide/getting-started-with-cfengine-build/reporting-and-web-ui.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is by no means an exhaustive list of everything Mission Portal offers, but
1111
If you haven't already, open your web browser and put the IP address (or hostname) of your CFEngine Hub in the address bar.
1212
For example:
1313

14-
https://192.168.56.1/
14+
https://192.168.56.2/
1515

1616
(Log in with the username and password for your hub, the default is `admin` as both and you will be prompted to change it on the first login).
1717

guide/getting-started-with-cfengine-build/writing-policy.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ You can log in with SSH to check this, or use `cf-remote`:
7676

7777
```
7878
$ cf-remote sudo -H hub "cat /tmp/hello"
79-
[email protected].1: 'cat /tmp/hello' -> 'Hello, world!'
79+
[email protected].2: 'cat /tmp/hello' -> 'Hello, world!'
8080
```
8181

8282
## Running the agent

0 commit comments

Comments
 (0)