Skip to content

Commit

Permalink
renamed some hardware before going into metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
basraven committed Sep 14, 2020
1 parent d8d0449 commit eb1a917
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 22 deletions.
28 changes: 14 additions & 14 deletions cicd/ansible/hosts.yml → cicd/ansible/1-cluster.yml
Expand Up @@ -20,20 +20,20 @@ all:
ansible_user: basraven
ansible_port: 22
hosts:
linux-wayne:
#FIXME: kerberos: server
ha_proxy_node_state: MASTER
ha_proxy_node_prio: 105
ha_proxy_node_interface: "enp3s0"
keepalived_peers: 192.168.5.2
ansible_host: 192.168.5.1
nfs_storage_capabilities:
- 111
- 211
- 221
- 112
- 212
- 222
# linux-wayne:
# #FIXME: kerberos: server
# ha_proxy_node_state: MASTER
# ha_proxy_node_prio: 105
# ha_proxy_node_interface: "enp3s0"
# keepalived_peers: 192.168.5.2
# ansible_host: 192.168.5.1
# nfs_storage_capabilities:
# - 111
# - 211
# - 221
# - 112
# - 212
# - 222

50centos:
kerberos: client
Expand Down
18 changes: 18 additions & 0 deletions cicd/ansible/2-peripheral.yml
@@ -0,0 +1,18 @@
all:
hosts:
children:
virtual:
vars:
ansible_user: vagrant
ansible_ssh_pass: vagrant
metal:
vars:
ansible_user: basraven
ansible_port: 22
tags: helper
hosts:
50centos:
ansible_host: 192.168.5.2

#[raspis:vars]
#ansible_ssh_private_key_file=~/.ssh/id_rsa
4 changes: 2 additions & 2 deletions cicd/jenkins/pipelines/ansible/Jenkinsfile
Expand Up @@ -116,7 +116,7 @@ pipeline{
echo "#######################################################################"
}
lock(label: 'virtual', variable: 'LOCK_NAME', resource: null){
ansiblePlaybook colorized: true, disableHostKeyChecking: true, installation: 'ansible', inventory: 'cicd/ansible/hosts.yml', extras: '--limit="virtual" ' + EXTRA_VARS, playbook: 'cicd/ansible/site.yml', tags: "${tags}"
ansiblePlaybook colorized: true, disableHostKeyChecking: true, installation: 'ansible', inventory: 'cicd/ansible/1-cluster.yml', extras: '--limit="virtual" ' + EXTRA_VARS, playbook: 'cicd/ansible/site.yml', tags: "${tags}"
}
junit 'junit/site-*.xml'
}
Expand Down Expand Up @@ -154,7 +154,7 @@ pipeline{
echo "#######################################################################"
}
lock(label: 'metal', variable: 'LOCK_NAME', resource: null){
ansiblePlaybook colorized: true, disableHostKeyChecking: true, installation: 'ansible', inventory: 'cicd/ansible/hosts.yml', extras: '--limit="metal" ' + EXTRA_VARS, playbook: 'cicd/ansible/site.yml', tags: "${tags}"
ansiblePlaybook colorized: true, disableHostKeyChecking: true, installation: 'ansible', inventory: 'cicd/ansible/1-cluster.yml', extras: '--limit="metal" ' + EXTRA_VARS, playbook: 'cicd/ansible/site.yml', tags: "${tags}"
}
junit 'junit/site-*.xml'
}
Expand Down
Expand Up @@ -2,6 +2,7 @@
title: Capability Architecture
type: docs
bookToc: false
bookCollapseSection: true
weight: 2
---

Expand Down
Expand Up @@ -2,7 +2,6 @@
title: Technical Architecture
type: docs
bookToc: false
bookCollapseSection : true
weight: 3
---

Expand Down
Expand Up @@ -12,10 +12,12 @@ How all of this infrastructure is deployed can be found in [the deployment archi
### Server Inventory
Currently the following servers are being used:

| ID | Hostname | OS | Hardware Description |
| --- | --- | --- | --- |
| 1 | linux-wayne | Ubuntu server (latest) | Core i5 Desktop with SSD |
| 2 | 50centos | CentOS 8 | Core i7 Laptop with HDD only |
| ID | Hostname | OS | Hardware Description | Hardware Tier |
| --- | --- | --- | --- | --- |
| 1 | linux-wayne | Ubuntu server (latest) | Core i5 Desktop with SSD | 1 - cluster |
| 2 | 50centos | CentOS 8 | Core i7 Laptop with HDD only | 1 - cluster |
| 3 | ali-bell | Raspbian | Doorbell Raspberry Pi Zero | 2 - periferal |
| 4 | kodi-e | Raspbian | Kodi Raspberry Pi 3b bedroom | 2 - periferal |

### Kubernetes (k8s)
The majority of the applications are hosted through Kubernetes.
Expand Down
Expand Up @@ -18,7 +18,7 @@ Since there's always a need for installing packages on the nodes directly and I
The goal here is to document every step, it does not matter how small, into an Ansible Playbook script.
These Ansible scripts can be found on <https://github.com/basraven/la1r/ansible>

#### Ansible Tags
#### Ansible Technical Tags
The following tags are used in Ansible:
* helper - Helper scripts for the run itself, e.g. to determine OS
* hostname - Set hostname of server
Expand Down

0 comments on commit eb1a917

Please sign in to comment.