Skip to content

Commit

Permalink
Fix superlinter findings
Browse files Browse the repository at this point in the history
  • Loading branch information
$full_name committed Nov 3, 2023
1 parent 85c37d1 commit daaf494
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ It sets the hostname, install different software packages and sets ssh key.
## How to use this repository

1. Change the default values in `configruation.yml`
1. Run `settin-up-pc.sh` this script install all prerequisites and the software configurated in this repo.
1. Run `settin-up-pc.sh` this script install all prerequisites and the software configurated in this repository.
2 changes: 1 addition & 1 deletion configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bashrc:
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1='\[\e[0;1;38;5;34m\]\u\[\e[0;1;38;5;34m\]@\[\e[0;1;38;5;34m\]\h\[\e[0;1m\]:\[\e[0;1;38;5;33m\]\w \[\e[0;91m\]$(parse_git_branch)\[\e[0m\]\$ \[\e[0m\]'
export PS1='\[\e[0;1;38;5;34m\]\u\[\e[0;1;38;5;34m\]@\[\e[0;1;38;5;34m\]\h\[\e[0;1m\]:\[\e[0;1;38;5;33m\]\w \[\e[0;$91m\]$(parse_git_branch)\[\e[0m\]\$ \[\e[0m\]'
source <(kubectl completion bash)
alias k=kubectl
complete -o default -F __start_kubectl k
Expand Down
14 changes: 9 additions & 5 deletions roles/install_devops_tools/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
name: "kubernetes"
description: "Kubernetes Stable"
baseurl: "https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch"
gpgkey: "https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg"
gpgkey: "https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-packag\
e-key.gpg"
gpgcheck: true
enabled: true
when: ansible_facts['os_family'] == "RedHat"
Expand All @@ -13,7 +14,8 @@
ansible.builtin.yum_repository:
name: "hashicorp"
description: "Hashicorp Stable - $basearch"
baseurl: "https://rpm.releases.hashicorp.com/{{ ansible_facts['distribution'] | lower }}/$releasever/$basearch/stable"
baseurl: "https://rpm.releases.hashicorp.com/{{ ansible_facts['distribution'] | lower }}/$releasever/$basearch/stab\
le"
gpgkey: "https://rpm.releases.hashicorp.com/gpg"
gpgcheck: true
enabled: true
Expand All @@ -35,7 +37,8 @@

- name: "Add kubectl repo"
ansible.builtin.apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main"
repo: "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes\
-xenial main"
filename: "kubernetes"

- name: "Add repository for Hashicorp (Debian)"
Expand All @@ -60,7 +63,7 @@
- name: "Add hashicorp repo"
ansible.builtin.copy:
content: "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com {{ ansible_facts['distribution_release'] }} main"
https://apt.releases.hashicorp.com {{ ansible_facts['distribution_release'] }} main"
dest: "/etc/apt/sources.list.d/hashicorp.list"
mode: "0644"

Expand Down Expand Up @@ -107,7 +110,8 @@
- name: "Set download URL"
ansible.builtin.set_fact:
github_download_url:
"{{ (k9s_github_download_link.json.assets | selectattr('browser_download_url', 'contains', k9s_Linux_amd64) | first).browser_download_url }}"
"{{ (k9s_github_download_link.json.assets | selectattr('browser_download_url', 'contains', k9s_Linux_amd64) |\
first).browser_download_url }}"

- name: "Install k9s"
ansible.builtin.unarchive:
Expand Down
3 changes: 2 additions & 1 deletion roles/install_general_software/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

- name: Enable the RPM Fusion repository
ansible.builtin.dnf:
name: "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
name: "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}\
.noarch.rpm"
state: present
when: ansible_distribution == 'Fedora'

Expand Down

0 comments on commit daaf494

Please sign in to comment.