Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Changing the world while working at @KanteronSystems

Pablo Hinojosa Pablohn26

💭
Changing the world while working at @KanteronSystems
View GitHub Profile
@Pablohn26
Pablohn26 / invalid selinux context
Last active Jan 3, 2016
Selinux problem: invalid selinux context
View invalid selinux context
Hi,
I am having problems when I use the template module over a ZFS filesystem with NFS mounted with a selinux context for Apache.
The command is the next:
- name: Base Files - template /cluster/default/apache/created/index.html.j2
template: src=cluster/default/apache/created/index.html.j2 dest=/cluster/default/apache/created/index.html owner=apache group=apache mode=0644
I have also used:
- name: Base Files - template /cluster/default/apache/created/index.html.j2
View gist:8478488
- name: getting tty
shell: virsh dumpxml {{ item.name }} | grep "tty=" | cut -d= -f3 | cut -d/ -f4 | cut -d\' -f1
#shell: virsh dumpxml log-dev02 | grep "tty=" | cut -d= -f3 | cut -d/ -f4 | cut -d\' -f1
with_items: vmHash.vms
register: ntty
- name: entering on the shell inside each tty
shell: "echo '6' > /dev/pts/{{ item.stdout }}"
with_items: ntty.results
View gist:8479624
with the next structure:
- vmHash: { vcpu: 1,
ram: 1024,
storage: 10,
vms: [{name: storage1-dev02,ip: 10.199.3.87},
{name: storage2-dev02,ip: 10.199.3.88},
{name: storage3-dev02,ip: 10.199.3.89}]
}
View gist:8479804
with the next structure:
- vmHash: { vcpu: 1,
ram: 1024,
storage: 10,
vms: [{name: storage1-dev02,ip: 10.199.3.87},
{name: storage2-dev02,ip: 10.199.3.88},
{name: storage3-dev02,ip: 10.199.3.89}]
}
View keybase.md

Keybase proof

I hereby claim:

  • I am pablohn26 on github.
  • I am pablohn (https://keybase.io/pablohn) on keybase.
  • I have a public key ASCsNnpxJ0SmtDfMwW3XXLTjPBIJRZo5t92_h3EKwB54_Ao

To claim this, I am signing this object:

View Keybase Windows client error
[0FBC:07C8][2016-08-04T11:43:00]i001: Burn v3.10.2.2516, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\Pablo\AppData\Local\Temp\{927AC074-995D-480D-BAEE-C10153FC41DB}\.cr\keybase_setup_386.exe
[0FBC:07C8][2016-08-04T11:43:00]i000: Initializing string variable 'DokanProduct64' to value '{65A3A964-3DC3-0100-0000-160621082245}'
[0FBC:07C8][2016-08-04T11:43:00]i000: Initializing string variable 'DokanProduct86' to value '{65A3A986-3DC3-0100-0000-160621082245}'
[0FBC:07C8][2016-08-04T11:43:00]i009: Command Line: '-burn.clean.room=C:\Users\Pablo\Downloads\keybase_setup_386.exe'
[0FBC:07C8][2016-08-04T11:43:00]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Pablo\Downloads\keybase_setup_386.exe'
[0FBC:07C8][2016-08-04T11:43:00]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Pablo\Downloads\'
[0FBC:07C8][2016-08-04T11:43:00]i000: Setting string variable 'LOGPATH_PROP' to value 'C:\Users\Pablo\AppData\Local\Temp\Keybase_20160804114300.log'
[0FBC:0
View Keybase_20160822195138.log
[266C:25D0][2016-08-22T19:51:38]i001: Burn v3.10.2.2516, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\Pablo\AppData\Local\Temp\{2868C159-2987-4AAA-B58F-9084EA96B294}\.cr\keybase_setup_386(1).exe
[266C:25D0][2016-08-22T19:51:38]i000: Initializing string variable 'DokanProduct64' to value '{65A3A964-3DC3-0100-0000-160621082245}'
[266C:25D0][2016-08-22T19:51:38]i000: Initializing string variable 'DokanProduct86' to value '{65A3A986-3DC3-0100-0000-160621082245}'
[266C:25D0][2016-08-22T19:51:38]i009: Command Line: '-burn.clean.room=E:\Descargas\keybase_setup_386(1).exe'
[266C:25D0][2016-08-22T19:51:38]i000: Setting string variable 'WixBundleOriginalSource' to value 'E:\Descargas\keybase_setup_386(1).exe'
[266C:25D0][2016-08-22T19:51:38]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'E:\Descargas\'
[266C:25D0][2016-08-22T19:51:38]i000: Setting string variable 'LOGPATH_PROP' to value 'C:\Users\Pablo\AppData\Local\Temp\Keybase_20160822195138.log'
[266C:25D0][2016-08-22T19:51:38]i0
View Keybase_20160822195138_000_KeybasePrograms.log
=== Verbose logging started: 22/08/2016 19:51:41 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Users\Pablo\AppData\Local\Temp\{2868C159-2987-4AAA-B58F-9084EA96B294}\.cr\keybase_setup_386(1).exe ===
MSI (c) (6C:1C) [19:51:41:090]: Resetting cached policy values
MSI (c) (6C:1C) [19:51:41:090]: Machine policy value 'Debug' is 0
MSI (c) (6C:1C) [19:51:41:090]: ******* RunEngine:
******* Product: C:\Users\Pablo\AppData\Local\Package Cache\{803E48B3-ECDB-4B7D-9795-63FAD60A2E26}v1.0.16.79\Keybase.msi
******* Action:
******* CommandLine: **********
MSI (c) (6C:1C) [19:51:41:090]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (6C:1C) [19:51:41:090]: Grabbed execution mutex.
MSI (c) (6C:1C) [19:51:41:110]: Cloaking enabled.
View Fedora docker debug info
0 pablo:4@~$ sudo docker -D info
Containers: 14
Running: 0
Paused: 0
Stopped: 14
Images: 32
Server Version: 1.10.3
Storage Driver: devicemapper
Pool Name: docker-253:0-409604-pool
Pool Blocksize: 65.54 kB