$ cat lvm-playbook.yml
---
- hosts: all
become: yes
tasks:
- name: Create Volume Group
lvg:
vg: "{{ vg_name }}"
pvs: "{{ pvs }}"
- name: Create Logical Volume
lvol:
vg: "{{ vg_name }}"
lv: "{{ lv_name }}"
size: "{{ lv_size }}"
- name: Creafe File System
filesystem:
fstype: ext4
dev: "/dev/{{ vg_name }}/{{ lv_name }}"
- name: Mount Logical volume FS
mount:
name: "/{{ mount_name }}"
src: "/dev/{{ vg_name }}/{{ lv_name }}"
fstype: ext4
state: mounted
$ cat inventory.ini
127.0.0.1:22222 ansible_user=gigauser pvs=/dev/sdb vg_name=vgname1 lv_name=lv_name1 lv_size=50M mount_name=vgmount
$ ansible-playbook -i inventory.ini lvm-playbook.yml --ask-become-pass
# sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
or
# gitlab-rails dbconsole --database main
gitlabhq_production=# insert into users (name, username, email, notification_email, projects_limit, state, created_at, confirmed_at) values ('Name Surname', 'userlogin',
After that password can be restored via password recovery procedure.
Set user admin permissions:
gitlabhq_production=# UPDATE users SET admin = 't' WHERE email like
Links:
https://docs.gitlab.com/ee/security/reset_user_password.html
-----------------------
from
https://discuss.newrelic.com/t/creating-soap-request-using-the-api-scripting-language/28167
Goal : to make it work in newrelic
curl -X POST -F <data1> -F <data2> -F <data3> <URI>
Find substring 'Successful' on the result page
-------------------
API test should be created in newrelic. Code:
var assert = require('assert');
var options = {
body: "field1=data1&field2=data2",
headers: {
'Content-Type': 'application/x-www-formurlencoded'
}
};
//Define expected results using callback function.
function callback(error, response, body) {
//Log status code to Synthetics console.
console.log(response.statusCode + " status code")
//Verify endpoint returns 200 (OK) response code.
var match_result = body.match(/Successful/);
assert.ok((response.statusCode == 200) && (match_result != null), 'Expected 200 OK response and "Successful" on the page');
//Log end of script.
console.log("End reached");
}
$http.post(options, callback);