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
#!/usr/bin/php | |
<?php | |
$cli_opts = "h"; | |
$cli_long_opts = array( | |
"list", | |
"host:" | |
); | |
$options = getopt( $cli_opts, $cli_long_opts ); | |
print_r($options); |
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
Started GET "/users/sign_in" for 72.92.42.152 at 2015-03-25 05:20:40 +0000 | |
Processing by SessionsController#new as HTML | |
Completed 500 Internal Server Error in 93ms | |
NoMethodError (undefined method `push_events=' for #<GitlabIssueTrackerService:0x0000000490b358>): | |
app/models/project.rb:329:in `default_issue_tracker' | |
app/controllers/application_controller.rb:190:in `add_gon_variables' |
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 host keys | |
shell: "ssh-keyscan {{ hostvars[item]['ansible_ssh_host'] }}" | |
with_flattened: | |
- "{{ groups['elasticpress'] }}" | |
- "{{ groups['logstash'] }}" | |
- "{{ groups['webserver'] }}" | |
- "{{ groups['mariadb'] }}" | |
- "{{ groups['nfs-server'] }}" | |
register: inventory_host_keys | |
tags: [ 'monitmonit' ] |
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: Install Gitlab runner repository | |
copy: | |
src: etc/yum.repos.d/gitlab-runner.repo | |
dest: /etc/yum.repos.d/gitlab-runner.repo | |
tags: [ 'gitlab-runner' ] | |
- name: Install Gitlab repository GPG key | |
rpm_key: | |
state: present |
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
[root@NY11IBUILD01 ANSIBLE]# ansible-playbook playbook.yml --tags gitlab-runner --limit wrapweb | |
PLAY [webserver] ************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [wrapweb2] | |
ok: [wrapweb3] | |
ok: [wrapweb1] | |
TASK: [gitlab-runner | Install Gitlab runner repository] ********************** |
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
# I want to have a walker set up various symlinks per virtualhost. | |
# I want to support: | |
sites: | |
site: | |
url: url.com | |
site: | |
url: url2.com | |
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
# | |
# Useful symlinks for admin shortcuts | |
- name: Nginx config symlinks | |
file: | |
src: /etc/nginx/conf.d/{{ item.site.url }}.conf | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/nginx.conf | |
state: link | |
with_items: wp | |
when: wp is defined |
OlderNewer