start new:
tmux
start new with session name:
tmux new -s myname
#/dashboard/?foreach=(project%3A^openstack%2Fopenstack-ansible.*)%0Astatus%3Aopen%0ANOT+owner%3Aself%0ANOT+label%3AWorkflow<%3D-1%0Alabel%3AVerified>%3D1%2Cjenkins%0ANOT+label%3ACode-Review>%3D0%2Cself&title=OpenStack-Ansible+Review+Inbox&Reviews+Requested+by+PTL=starredby%3Aandrew-mccrae&Needs+Feedback+(Changes+older+than+5+days+that+have+not+been+reviewed+by+anyone)=NOT+label%3ACode-Review<%3D2+age%3A5d&You+are+a+reviewer+but+haven't+voted+in+the+current+revision=NOT+label%3ACode-Review<%3D2%2Cself+reviewer%3Aself&Needs+final+%2B2=label%3ACode-Review>%3D2+limit%3A50+NOT+label%3ACode-Review<%3D-1%2Cself&Passed+Jenkins%2C+No+Negative+Feedback=NOT+label%3ACode-Review>%3D2+NOT+label%3ACode-Review<%3D-1+limit%3A50&Wayward+Changes+(Changes+with+no+code+review+in+the+last+2days)=NOT+label%3ACode-Review<%3D2+age%3A2d |
#!/bin/bash | |
sudo xcode-select --install # And open xcode to accept license | |
# INSTALL MACOS X SOFTWARE | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew analytics off | |
brew install wget mc yubico-piv-tool xz p7zip git ncftp ipcalc mtr |
storage_hosts: | |
aio1: | |
ip: 172.29.236.100 | |
container_vars: | |
cinder_backends: "{{ cinder_backends_per_host.get(inventory_hostname) }}" |
--- | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: simulate long running op (10 sec), wait for up to 30 sec, poll every 2 sec | |
command: /bin/sleep 10 | |
register: sleeptask | |
async: 30 | |
poll: 0 | |
- name: simulate an error on the command, and see if the task fails. |
{ | |
"changed": true, | |
"end": "2017-03-15 16:11:46.959940", | |
"stdout": "Loading packages...\nGenerating metadata files and linking package files...", | |
"cmd": "aptly publish snapshot -distribution=\"r14.0.0rc1-trusty\" miko-r14.0.0rc1-trusty integrated", | |
"start": "2017-03-15 16:11:02.981904", | |
"delta": "0:00:43.978036", | |
"stderr": "panic: unable to unxz data.tar.xz from /var/www/artifacts/apt/pool/ca/d0/unity-tweak-tool_0.0.6ubuntu2~ubuntu14.04.1_all.deb: fork/exec /usr/bin/xz: cannot allocate memory [recovered]\n\tpanic: unable to unxz data.tar.xz from /var/www/artifacts/apt/pool/ca/d0/unity-tweak-tool_0.0.6ubuntu2~ubuntu14.04.1_all.deb: fork/exec /usr/bin/xz: cannot allocate memory\n\ngoroutine 1 [running]:\ngithub.com/smira/aptly/cmd.Run.func1(0xc82065ff18)\n\t/Users/smira/Documents/go/src/github.com/smira/aptly/cmd/run.go:16 +0x7f\ngithub.com/smira/aptly/deb.(*Package).CalculateContents(0xc8219c9bc0, 0x7f9f281e9ac8, 0xc8210c2a20, 0x0, 0x0, 0x0)\n\t/Users/smira/Documents/go/src/github.com/smira/aptly/ |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and |
import yaml | |
files_to_open = [ | |
'user_osa_variables_defaults_cleaned.yml', | |
'user_osa_variables_overrides_cleaned.yml', | |
'user_rpco_variables_defaults_cleaned.yml', | |
'user_rpco_variables_overrides_cleaned.yml', | |
] | |
resulting_file = 'assertions.yml' |
--- | |
- hosts: localhost | |
gather_facts: no | |
connection: local | |
tasks: | |
# This should have finished at worst 13 seconds (+1, poll frequency) after the start | |
- shell: "sleep {{ item }}" | |
async: 20 | |
poll: 1 | |
with_items: |