https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>dfs.data.dir</name> | |
<value>{{user_dir}}{{datanode_directory }}</value> | |
</property> | |
</configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#configure namenode | |
- name: "configure namenode" | |
hosts: hadoop_namenode | |
tags: | |
- "namenode" | |
vars: | |
user_dir: "{{ ansible_facts['user_dir'] }}" | |
vars_files: | |
- vars.yml | |
- namenode/vars.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: webserver | |
vars_files: | |
- vars.yml | |
tasks: | |
- name: "Install HTTPD " | |
package: | |
name: "httpd" | |
state: present | |
register: httpd_install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: "Webserver" | |
hosts: creatorsbyheart_webservers | |
vars_files: | |
- webservers/vars.yml | |
tags: | |
- "webservers" | |
become: true | |
tasks: | |
- name: "Installation" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plist> | |
<dict> | |
<key>Label</key> | |
<string>com.mycicd.jenkins-agent</string> | |
<key>UserName</key> | |
<string>admin</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: myserver | |
become: true | |
tasks: | |
- debug: | |
var: ansible_os_family | |
- name: "create yum repository for docker" | |
yum_repository: | |
name: docker-repo | |
description: "repo for docker" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"path" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================== | |
# Database environment | |
# | |
DB_TYPE=mysql | |
DB_HOST= | |
DB_NAME= | |
DB_USER= | |
DB_PASSWORD= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###################################################################### | |
#This is an example of using getopts in Bash. It also contains some | |
#other bits of code I find useful. | |
#Author: Linerd | |
#Website: http://tuxtweaks.com/ | |
#Copyright 2014 | |
#License: Creative Commons Attribution-ShareAlike 4.0 | |
#http://creativecommons.org/licenses/by-sa/4.0/legalcode |