Skip to content

Instantly share code, notes, and snippets.

View apinter's full-sized avatar
Working from home

Attila Pinter apinter

Working from home
  • Jakarta, Indonesia
View GitHub Profile
[apinter@busybee:~/nix-config]$ nix run github:nix-community/nixos-anywhere -- --flake .#medusa root@
### Uploading install SSH keys ###
/run/current-system/sw/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/tmp/tmp.metxAoZsfS/"
/run/current-system/sw/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/run/current-system/sw/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Warning: Permanently added '' (ED25519) to the list of known hosts.
root@'s password: 

Number of key(s) added: 1
apinter /
Created June 7, 2024 10:26
Dev mongo change
# ovh_cloud_project_database.mongodb must be replaced
-/+ resource "ovh_cloud_project_database" "mongodb" {
      ~ advanced_configuration  = {} -> (known after apply)
      ~ backup_regions          = [
          - "GRA",
        ] -> (known after apply)
      ~ backup_time             = "09:00:00" -> (known after apply)
      ~ created_at              = "2023-11-17T14:37:58.851097+01:00" -> (known after apply)
      ~ disk_type               = "high-speed" -> (known after apply)
◆ xund-terraform2 git:(OVH-DBaaS) ✗ ❯❯❯ TF_LOG=DEBUG terraform plan -out plan.bin
2024-05-21T19:48:08.849+0700 [INFO]  Terraform version: 1.8.3
2024-05-21T19:48:08.849+0700 [DEBUG] using v1.51.0
2024-05-21T19:48:08.849+0700 [DEBUG] using v2.20.0
2024-05-21T19:48:08.849+0700 [DEBUG] using v0.1.1
2024-05-21T19:48:08.849+0700 [DEBUG] using v1.14.3
2024-05-21T19:48:08.849+0700 [INFO]  Go runtime version: go1.22.1
2024-05-21T19:48:08.849+0700 [INFO]  CLI args: []string{"terraform", "plan", "-out", "plan.bin"}
2024-05-21T19:48:08.849+0700 [DEBUG] Attempting to open CLI config file: /Users/localadmin/.terraformrc
2024-04-25T22:58:08.927+0700 [DEBUG] provider.terraform-provider-ovh_v0.43.1: X-Iplb-Request-Id: 67796CB4:196C_8D5FBADF:01BB_662A7D90_9A0558F:C5A7
2024-04-25T22:58:08.927+0700 [DEBUG] provider.terraform-provider-ovh_v0.43.1: X-Ovh-Queryid: EU.ext-2.662a7d91.1200691.f8632fcef2581cf8dbe7652a68266d68
2024-04-25T22:58:08.927+0700 [DEBUG] provider.terraform-provider-ovh_v0.43.1: X-Recruitment: You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, ... In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us!
2024-04-25T22:58:08.927+0700 [DEBUG] provider.terraform-provider-ovh_v0.43.1: X-Xss-Protection: 1; mode=block
2024-04-25T22:58:08.927+0700 [DEBUG] provider.terraform-provider-ovh_v0.43.1
2024-04-25T22:58:08.927+0700 [DEBUG] provider.terraform-provider-ovh_v0.43.1: 1714060689
apinter /
Last active April 5, 2024 14:20
OVH mongo user creation fail
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # ovh_cloud_project_database_mongodb_user.xund_medres_admin will be created
  + resource "ovh_cloud_project_database_mongodb_user" "xund_medres_admin" {
      + cluster_id   = "0394a25e-f7b9-4d0c-99c6-c72c92c6acfe"
      + created_at   = (known after apply)
apinter /
Created April 5, 2024 12:34
OVH TF debug
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # ovh_cloud_project_database.mongodb_medres will be created
  + resource "ovh_cloud_project_database" "mongodb_medres" {
      + advanced_configuration = (known after apply)
      + backup_regions         = (known after apply)
provider "ovh" {
  endpoint           = var.ovh_endpoint
  application_key    = var.ovh_application_key
  application_secret = var.ovh_application_secret
  consumer_key       = var.ovh_consumer_key
  alias              = "ovh"

provider "openstack" {
│ Error: timeout while waiting IP restriction 9db76dff-63fa-4362-a92b-f560b72a1577 to be DELETED: unexpected state 'READY', wanted target 'DELETED'. last error: %!s(<nil>)

ovh_cloud_project_kube.development_cluster: Still modifying... [id=670f9a76-a617-436b-bed7-defe6c73152f, 10m0s elapsed]
│ Error: timeout while waiting kube 670f9a76-a617-436b-bed7-defe6c73152f to be READY: timeout while waiting for state to become 'READY' (last state: 'UPDATING', timeout: 10m0s)
│   with ovh_cloud_project_kube.development_cluster,
apinter /
Last active April 20, 2023 11:42
A list of booleans that are nice to have enabled on an SELinux system
sudo setsebool -P abrt_upload_watch_anon_write on
sudo setsebool -P auditadm_exec_content on
sudo setsebool -P boinc_execmem on
sudo setsebool -P cron_userdomain_transition on
sudo setsebool -P daemons_dontaudit_scheduling on
sudo setsebool -P dbadm_exec_content on
sudo setsebool -P domain_fd_use on
sudo setsebool -P entropyd_use_audio on
sudo setsebool -P fips_mode on
apinter /
Created November 3, 2022 08:38
ansible mongo error
TASK [Ensure replicaset is stable before beginning] **************************************************************************************************************************************
task path: /var/home/attila.pinter/Project/maintenance/mongors_update/mongors_dup.yml:43
280366 1667462506.63087: sending task start callback
280366 1667462506.63095: entering _queue_task() for mongo-1/community.mongodb.mongodb_status
280366 1667462506.63103: Creating lock for community.mongodb.mongodb_status
280366 1667462506.63514: worker is 1 (out of 2 available)
280366 1667462506.63667: exiting _queue_task() for mongo-1/community.mongodb.mongodb_status
280366 1667462506.63876: getting variables
280366 1667462506.63900: in VariableManager get_vars()