This file contains 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
src/main/resources | |
| | |
+- local | |
| | | |
| `- specific.properties | |
+- dev | |
| | |
`- specific.properties |
This file contains 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: Register maven installation status | |
command: which mvn | |
changed_when: false | |
failed_when: false | |
register: mvn_installed | |
- name: Check maven installation status | |
fail: | |
msg: "Maven appears to be missing, install first" | |
when: mvn_installed|failed |
This file contains 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: "Retrieve user's home path if not set" | |
sudo: yes | |
sudo_user: "{{ user }}" | |
shell: "echo $HOME" | |
register: _user_homedir | |
when: user_home == "" | |
- name: Set home path to be used for configuration | |
set_fact: | |
user_homedir: "{{ _user_homedir.stdout if user_home == '' else user_home }}" |
This file contains 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
# Download cert | |
openssl s_client -connect [host or IP]:[port] < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt | |
# Import into the default JVM trust store | |
$JAVA_HOME/bin/keytool -import -alias devops-repo -keystore $JAVA_HOME/lib/security/cacerts -file public.crt -storepass changeit |
This file contains 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": "myproject", | |
"version": "1.0.0", | |
"dependencies": { | |
"jquery": "1.8.0", | |
"twitter/bootstrap": "2.1.1", | |
"mypackage": "file:///path/to/mypackage/.git#master" | |
} | |
} |
This file contains 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: Make sure package dependencies are installed | |
yum: | |
name: "{{ item.package }}" | |
state: present | |
with_items: my_role_os_package_list | |
when: my_role_os_package_list|length > 0 |
This file contains 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: Create sudoers.d directory | |
file: | |
path: /etc/sudoers.d | |
owner: root | |
group: root | |
mode: 0755 | |
state: directory | |
- name: Set includedir in sudoers | |
lineinfile: |
This file contains 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 | |
# | |
# Install an configure sleepwatcher via brew for the current user | |
# Install | |
brew install sleepwatcher | |
# Configure | |
sudo tee -a /etc/rc.wakeup <<EOF | |
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
This file contains 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
echo -n | openssl s_client -connect HOST:PORTNUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$SERVERNAME.cert |
This file contains 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: Copy trusted repo gpg keys | |
copy: | |
src: "{{ item }}" | |
dest: "/etc/pki/rpm-gpg" | |
with_fileglob: | |
- RedHat/RPM-GPG-KEY-*-{{ os_version_major }} |
OlderNewer