Skip to content

docs(orc8r): Adding Deploy Orchestrator using Ansible docs#15166

Merged
wendallkaters merged 8 commits intomagma:masterfrom
ShubhamTatvamasi:magma-deployer-docs
Apr 3, 2023
Merged

docs(orc8r): Adding Deploy Orchestrator using Ansible docs#15166
wendallkaters merged 8 commits intomagma:masterfrom
ShubhamTatvamasi:magma-deployer-docs

Conversation

@ShubhamTatvamasi
Copy link
Copy Markdown
Member

Summary

Test Plan

Additional Information

  • This change is backwards-breaking

Security Considerations

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Mar 30, 2023
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: docs Documentation-related issue label Mar 30, 2023

# Deploy Orchestrator using Ansible (Beta)

This how-to guide can be used to deploy Magma's Orchestrator on any cloud environment.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]


## Pre-requisites

- Ubuntu Jammy 22.04 VM / Baremetal machine
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

- CPU: 4 cores
- Storage: 100GB


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]



Quick Install:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"]

```

Switch to `magma` user after deployment has finsished:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"]

```

Once all pods are ready, setup NMS login:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"]

```

You can get your `rootCA.pem` file from the following location:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"]


# Deploy Orchestrator using Ansible (Beta)

This how-to guide can be used to deploy Magma's Orchestrator on any cloud environment.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
This how-to guide can be used to deploy Magma's Orchestrator on any cloud environment.
This how-to guide can be used to deploy Magma's Orchestrator on any cloud environment.


## Pre-requisites

- Ubuntu Jammy 22.04 VM / Baremetal machine
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
- Ubuntu Jammy 22.04 VM / Baremetal machine
- Ubuntu Jammy 22.04 VM / Baremetal machine

- CPU: 4 cores
- Storage: 100GB


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change



Quick Install:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```bash
```bash

```

Switch to `magma` user after deployment has finsished:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```bash
```bash

```

Once all pods are ready, setup NMS login:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```bash
```bash

```

You can get your `rootCA.pem` file from the following location:
```bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```bash
```bash

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2023

DP Lint & Test

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit eb66ba1.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2023

Oops! Looks like you failed the Docs Lint & Check Generated Files In Sync.

Howto

♻️ Updated: ❌ The check is still failing the Docs Lint & Check Generated Files In Sync after the last commit.

Signed-off-by: Shubham Tatvamasi <[email protected]>
## Deploy Orchestrator

Quick Install:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

## Deploy Orchestrator

Quick Install:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

```

Switch to `magma` user after deployment has finsished:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

```

Switch to `magma` user after deployment has finsished:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

```

Check if all pods are ready
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

```
> Replace the IP address with the one you see in `kubectl get nodes -o wide`


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]


You can access NMS at the following URL:

https://magma-test.nms.magma.local
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD034/no-bare-urls Bare URL used [Context: "https://magma-test.nms.magma.l..."]


https://magma-test.nms.magma.local


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]



You can get your `rootCA.pem` file from the following location:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]



You can get your `rootCA.pem` file from the following location:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

## Deploy Orchestrator

Quick Install:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

```

Switch to `magma` user after deployment has finsished:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

```

Check if all pods are ready
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

```

setup NMS login:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

```

Update `/etc/hosts` file with the following entries:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

10.86.113.153 controller.magma.local
10.86.113.153 bootstrapper-controller.magma.local
```
> Replace the IP address with the one you see in `kubectl get nodes -o wide`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
> Replace the IP address with the one you see in `kubectl get nodes -o wide`

```
> Replace the IP address with the one you see in `kubectl get nodes -o wide`


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
> Replace the IP address with the one you see in `kubectl get nodes -o wide`

Comment on lines +59 to +60
https://magma-test.nms.magma.local

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
https://magma-test.nms.magma.local
<https://magma-test.nms.magma.local>



You can get your `rootCA.pem` file from the following location:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

Signed-off-by: Shubham Tatvamasi <[email protected]>
```

Update `/var/opt/magma/configs/control_proxy.yml` file with the following content:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

```

Update `/var/opt/magma/configs/control_proxy.yml` file with the following content:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

```

Update `/var/opt/magma/configs/control_proxy.yml` file with the following content:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

Signed-off-by: Shubham Tatvamasi <[email protected]>
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Apr 2, 2023
kubectl get pods
```

```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
```
> Replace the External IP address with the one you see in `kubectl get svc haproxy`

```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

```

Update `/etc/hosts` file in Access Gateway with the following entries:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

```

Update `/etc/hosts` file in Access Gateway with the following entries:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

10.86.113.153 controller.magma.local
10.86.113.153 bootstrapper-controller.magma.local
```
> Replace the External IP address with the one you see in `kubectl get svc haproxy`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
> Replace the External IP address with the one you see in `kubectl get svc haproxy`
> Replace the External IP address with the one you see in `kubectl get svc haproxy`

```

Update `/etc/hosts` file in Access Gateway with the following entries:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

Signed-off-by: Shubham Tatvamasi <[email protected]>
```

Following roles will be installed:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

```

Following roles will be installed:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

## DNS Setup

Get the External IP address of the `haproxy` service:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

## DNS Setup

Get the External IP address of the `haproxy` service:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

kubectl get svc haproxy
```

```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

```

Following roles will be installed:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

## DNS Setup

Get the External IP address of the `haproxy` service:
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
```
```

10.86.113.153 controller.magma.local
10.86.113.153 bootstrapper-controller.magma.local
```
> Replace the External IP with the one you got from the previous step.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
> Replace the External IP with the one you got from the previous step.
> Replace the External IP with the one you got from the previous step.

@ShubhamTatvamasi ShubhamTatvamasi marked this pull request as ready for review April 2, 2023 06:50
@ShubhamTatvamasi ShubhamTatvamasi requested a review from a team as a code owner April 2, 2023 06:50
@ShubhamTatvamasi ShubhamTatvamasi requested a review from ardzoht April 2, 2023 06:50
Signed-off-by: Shubham Tatvamasi <[email protected]>
@ShubhamTatvamasi ShubhamTatvamasi enabled auto-merge (squash) April 3, 2023 06:09
@jordanvrtanoski jordanvrtanoski disabled auto-merge April 3, 2023 16:37
@wendallkaters wendallkaters merged commit 666a3f3 into magma:master Apr 3, 2023
lucasgonze pushed a commit to lucasgonze/magma that referenced this pull request Feb 29, 2024
* docs(orc8r): Adding Deploy Orchestrator using Ansible docs

Signed-off-by: Shubham Tatvamasi <[email protected]>

* Added more content

Signed-off-by: Shubham Tatvamasi <[email protected]>

* Added AGW

Signed-off-by: Shubham Tatvamasi <[email protected]>

* Added k8s commands

Signed-off-by: Shubham Tatvamasi <[email protected]>

* minor docs fix

Signed-off-by: Shubham Tatvamasi <[email protected]>

* Added DNS

Signed-off-by: Shubham Tatvamasi <[email protected]>

* Added roles output

Signed-off-by: Shubham Tatvamasi <[email protected]>

* lint fix

Signed-off-by: Shubham Tatvamasi <[email protected]>

---------

Signed-off-by: Shubham Tatvamasi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: docs Documentation-related issue size/L Denotes a Pull Request that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants