User Tools

Site Tools


capacity_building:workshops:tooling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
capacity_building:workshops:tooling [2022/10/08 12:22] – [Tools, Workflow and Resources for Effective Development] rolf001capacity_building:workshops:tooling [2022/10/09 21:04] (current) harley001
Line 19: Line 19:
 ===== Demo Scripts Used in the Workshop ===== ===== Demo Scripts Used in the Workshop =====
  
-<WRAP center round info 60%> +Download all the files here: {{ :capacity_building:workshops:example_files.zip |example_files.zip}}
-Please change the ''.doc'' extension to the correct extension. The Bash script uses ''.sh'' and ansible-playbooks ''.yml''. +
-</WRAP>+
  
-  * {{ :capacity_building:workshops:bash-hello.doc |Hello bash script}}: Print message in the terminal +  * ''bash-hello.sh'': Print message in the terminal 
-  * {{ :capacity_building:workshops:tmux-fzf.doc |Tmux and fzf bash script}}: fuzzy search over a group of specified directories +  * ''tmux-fzf.sh'': fuzzy search over a group of specified directories 
-  * {{ :capacity_building:workshops:bash-software.doc |Software installation bash script}}: Basic bash script to install a set of packages +  * ''bash-software.sh'': Basic bash script to install a set of packages 
-  * {{ :capacity_building:workshops:ansible-software.doc |Software installation ansible playbook}}: Basic playbook to install a set of packages +  * ''ansible-software.yml'': Basic playbook to install a set of packages 
-  * {{ :capacity_building:workshops:bash-software-tags.doc |Tags implementation in bash}}: Minimal and basic tag implementation to emulate ansible tags using bash script+  * ''bash-software-tags'': Minimal and basic tag implementation to emulate ansible tags using bash script
  
 ===== bash Demo ===== ===== bash Demo =====
Line 33: Line 31:
 <file bash hello-bash.sh> <file bash hello-bash.sh>
 #!/bin/bash #!/bin/bash
-# 
-# Script used as demo during the workshop 
-# "Tools, Workflows and Resources" 
-# 06 Oct. 2022, HSRW Germany 
- 
-# Copyright (c) 2022 Harley Lara 
- 
-# Permission is hereby granted, free of charge, to any person obtaining 
-# a copy of this software and associated documentation files (the 
-# "Software"), to deal in the Software without restriction, including 
-# without limitation the rights to use, copy, modify, merge, publish, 
-# distribute, sublicense, and/or sell copies of the Software, and to 
-# permit persons to whom the Software is furnished to do so, subject to 
-# the following conditions: 
- 
-# The above copyright notice and this permission notice shall be 
-# included in all copies or substantial portions of the Software. 
- 
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
-# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
-# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
  
 echo "hello bash scripting" echo "hello bash scripting"
Line 66: Line 39:
 <file bash tmux-fzf.sh> <file bash tmux-fzf.sh>
 #!/bin/bash #!/bin/bash
-# 
-# Script used as demo during the workshop 
-# "Tools, Workflows and Resources" 
-# 06 Oct. 2022, HSRW Germany 
- 
-# Copyright (c) 2022 Harley Lara 
- 
-# Permission is hereby granted, free of charge, to any person obtaining 
-# a copy of this software and associated documentation files (the 
-# "Software"), to deal in the Software without restriction, including 
-# without limitation the rights to use, copy, modify, merge, publish, 
-# distribute, sublicense, and/or sell copies of the Software, and to 
-# permit persons to whom the Software is furnished to do so, subject to 
-# the following conditions: 
- 
-# The above copyright notice and this permission notice shall be 
-# included in all copies or substantial portions of the Software. 
- 
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
-# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
-# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
- 
- 
  
 # Used the next line to set the list of directories # Used the next line to set the list of directories
Line 136: Line 82:
 <file bash install-some-software-packages.sh> <file bash install-some-software-packages.sh>
 #!/bin/bash #!/bin/bash
-# 
-# Script used as demo during the workshop 
-# "Tools, Workflows and Resources" 
-# 06 Oct. 2022, HSRW Germany 
- 
-# Copyright (c) 2022 Harley Lara 
- 
-# Permission is hereby granted, free of charge, to any person obtaining 
-# a copy of this software and associated documentation files (the 
-# "Software"), to deal in the Software without restriction, including 
-# without limitation the rights to use, copy, modify, merge, publish, 
-# distribute, sublicense, and/or sell copies of the Software, and to 
-# permit persons to whom the Software is furnished to do so, subject to 
-# the following conditions: 
- 
-# The above copyright notice and this permission notice shall be 
-# included in all copies or substantial portions of the Software. 
- 
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
-# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
-# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
  
 sudo apt update && \ sudo apt update && \
Line 179: Line 100:
 ===== Encryption and Decryption with Ansible ===== ===== Encryption and Decryption with Ansible =====
  
 +Encryption:
 <code> <code>
-# Encryption: +$> ansible-vault encrypt FILE_NAME 
-ansible-vault encrypt FILE_NAME+</code>
  
-Decryption: +Decryption: 
-ansible-vault decrypt FILE_NAME+<code> 
 +$> ansible-vault decrypt FILE_NAME
 </code> </code>
  
capacity_building/workshops/tooling.1665224540.txt.gz · Last modified: 2022/10/08 12:22 by rolf001