- configure deploy user
groupadd deployers
adduser deploy
usermod -a -G deployers deploy
- to give the deployers group the permissions, run the following and edit the /etc/sudoers file:
visudo
| -- 読み取り専用にする | |
| FLUSH TABLES WITH READ LOCK; | |
| SET GLOBAL read_only = ON; | |
| -- バックアップとかDBサーバの移設作業とか -- | |
| -- 元に戻す | |
| SET GLOBAL read_only = OFF; | |
| UNLOCK TABLES; |
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # [email protected] | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
| #!/bin/bash | |
| ## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
| ## **This updated version has more options and less hardcoded variables.** | |
| # Take one argument from the commandline: VM name | |
| if ! [ $# -eq 1 ]; then | |
| echo "Usage: $0 <node-name>" | |
| exit 1 | |
| fi |
| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
| *m | |
| 06-Sep 11:54 bacula-dir JobId 216721: Created new Volume="FullAuto-4875", Pool="FullFile", MediaType="File" in catalog. | |
| 06-Sep 11:54 bacula-dir JobId 0: Max configured use duration=86,400 sec. exceeded. Marking Volume "TwoHourly-4395" as Used. | |
| 06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory | |
| 06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory | |
| 06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ |
| @virgo:~ $ sudo tcpdump -vvvv -ttt -i eth1 icmp6 and 'ip6[40] = 134' | |
| 00:00:00.000000 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 200) fe80::b675:eff:fefa:1cb > ip6-allnodes: [icmp6 sum ok] ICMP6, router advertisement, length 200 | |
| hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s | |
| source link-address option (1), length 8 (1): b4:75:0e:fa:01:cb | |
| 0x0000: b475 0efa 01cb | |
| mtu option (5), length 8 (1): 1280 | |
| 0x0000: 0000 0000 0500 | |
| prefix info option (3), length 32 (4): 2a01:ffff:43f::/64, Flags [onlink, auto], valid time 7200s, pref. time 1800s | |
| 0x0000: 40c0 0000 1c20 0000 0708 0000 0000 2a01 | |
| 0x0010: ffff 043f 0000 0000 0000 0000 0000 |
| /** | |
| * Google Apps has some admin restriction, such as sharing to whole group by default | |
| * this script can remove all sharing and reset to private only | |
| * For more information on interacting with folders, see | |
| * https://developers.google.com/apps-script/reference/drive/folder | |
| * Github gist is here: https://gist.github.com/billzhuang/43faa0a8daea8f0dab74 | |
| */ | |
| // step 1, prepare data in excel | |
| function prepareData(){ |
| #key | |
| set-option -g prefix C-s | |
| unbind-key C-b | |
| bind-key C-s send-prefix | |
| bind s split-window -v | |
| bind v split-window -h | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind h select-pane -L | |
| bind l select-pane -R |