Skip to content

Commit 8a39730

Browse files
committed
Update Blog “open-sourcing-workshops-on-demand-part2-deploying-the-backend”
1 parent 87e623e commit 8a39730

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

content/blog/open-sourcing-workshops-on-demand-part2-deploying-the-backend.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In the first [article](https://developer.hpe.com/blog/willing-to-build-up-your-o
1212

1313
The overall infrastructure can run on physical servers or VMs. We usually designate one server for the frontend and a second server for the backend. You could also decide to separate every single component of each side.
1414

15-
![](/img/wod-blogserie3-archi3.png)
15+
![](/img/howto-wod-5.png)
1616

1717
## How to deploy your own backend...
1818

@@ -60,7 +60,6 @@ It provides:
6060
* A fail2ban service
6161
* An Admin user to manage everything
6262
* A set of scripts to handle different tasks such as:
63-
6463
* Notebooks deployment
6564
* Jupyterhub compliancy
6665
* Users compliancy
@@ -87,16 +86,15 @@ We are currently using an HPE ProLiant DL360 Gen10 server on our different produ
8786

8887
When done with OS installation and preparation
8988

90-
* From the WoD-backend server (aka JupyterHub server), as the install user, you will need to clone the repo first.
89+
* From the WoD-backend server (aka JupyterHub server), as the install user, you will need to clone the repo first.
9190

9291
```shellsession
9392
install$ git clone https://github.com/Workshops-on-Demand/wod-backend.git
9493
install$ cd wod-backend/
9594
```
96-
9795
* Examine default installation parameters and adapt when necessary accordingly. Files are self-documented.
9896

99-
Look at the following files within ansible/group_vars directory.
97+
Look at the following files within ansible/group_vars directory.
10098

10199
* `all.yml` file
102100

@@ -277,26 +275,24 @@ WODFEAPIPWD: MotDePasseCompliquéAussi125!!!##
277275
* Calls the `install-system-<< distribution name >>.sh` script
278276
* Installs minimal required (`ansible, git, jq, openssh server, npm`)
279277
* Creates an admin user as defined upper (default is `wodadmin`) with sudo rights
280-
* Calls the `install-system-common.sh` script that performs the following tasks:
281-
282-
* Cleanup
283-
* Github repos cloning (leveraging install.repo file) : public Backend and public Private repos
284-
* Create ssh keys for wodadmin
285-
* Creates GROUPNAME variables
286-
* Creates Ansible inventory files
278+
* Calls the `install-system-common.sh` script that performs the following tasks:
279+
* Cleanup
280+
* Github repos cloning (leveraging install.repo file) : public Backend and public Private repos
281+
* Create ssh keys for wodadmin
282+
* Creates GROUPNAME variables
283+
* Creates Ansible inventory files
287284
* Calls the `install_system.sh` script with the type (backend, frontend, etc..) that performs the following tasks:
288-
289-
* Install the necessary stack based on selected type
290-
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
291-
* Source the `wod.sh` file
292-
* Setup Ansible-galaxies (`community.general` and `posix`)
293-
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
285+
* Install the necessary stack based on selected type
286+
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
287+
* Source the `wod.sh` file
288+
* Setup Ansible-galaxies (`community.general` and `posix`)
289+
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
294290

295291
At the end of the installation process:
296292

297-
* you will have a JupyterHub server running on port 8000
298-
* You will get a new `wodadmin` user (Default admin)
299-
* You will get a set of 20 students (Default value)
293+
* you will have a JupyterHub server running on port 8000
294+
* You will get a new `wodadmin` user (Default admin)
295+
* You will get a set of 20 students (Default value)
300296

301297
All playbooks are self-documented. Please check for details.
302298

@@ -320,18 +316,16 @@ The principle remains similar, with a few differences explained below.
320316
* Commit and push changes to your repo.
321317
* Create an `install.priv` file located in `install` directory when using a private repo (consider looking at [install.repo](https://github.com/Workshops-on-Demand/wod-backend/blob/main/install/install.repo) file for a better understanding of the variables).
322318
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
323-
324-
* `WODPRIVBRANCH="main"`
325-
* `WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"`
319+
* `WODPRIVBRANCH="main"`
320+
* `WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"`
326321

327322
**Note:** When using a token
328323

329324
Please refer to the following [url](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) to generate a `token` file in `install` directory of WoD-backend:
330325

331326
* Edit the `install.priv` file located in `install` directory of WoD-backend:
332-
333-
* Create line before variable declaration: ``token=`cat $EXEPATH/token` ``
334-
* Use the token in the url WODPRIVREPO="git clone https://user:[email protected]/Account/wod-private.git wod-private"
327+
* Create line before variable declaration: ``token=`cat $EXEPATH/token` ``
328+
* Use the token in the url WODPRIVREPO="git clone https://user:[email protected]/Account/wod-private.git wod-private"
335329

336330
You are now ready to perform the installation again to support a private repository.
337331

0 commit comments

Comments
 (0)