Skip to content

Instantly share code, notes, and snippets.

View mmmmmmpc's full-sized avatar

Miguel P.C. mmmmmmpc

View GitHub Profile
@mmmmmmpc
mmmmmmpc / Containerization.md
Last active July 28, 2020 12:16 — forked from andykrohg/Containerization.md
Cloud Readiness Target for Red Hat Application Migration Toolkit 4.3.1

Red Hat Application Migration ToolKit - Cloud Readiness Target/Containerization Transformation Path

Documentation distilled from the core ruleset here. Further information on RHAMT can be found on the product page here.

Cloud Mandatory

Mandatory items to be reviewed for a successful migration to a cloud environment.

Embedded Cache Libraries

This ruleset detects embedded cache libraries that may cause issues during migration.

Cloud readiness issue as potential state information that is not persisted to a backing service.

@mmmmmmpc
mmmmmmpc / Containerization.md
Created July 28, 2020 12:00 — forked from andykrohg/Containerization.md
Cloud Readiness Target for Red Hat Application Migration Toolkit 4.3.1

Red Hat Application Migration ToolKit - Cloud Readiness Target/Containerization Transformation Path

Documentation distilled from the core ruleset here. Further information on RHAMT can be found on the product page here.

Cloud Mandatory

Mandatory items to be reviewed for a successful migration to a cloud environment.

Embedded Cache Libraries

This ruleset detects embedded cache libraries that may cause issues during migration.

Cloud readiness issue as potential state information that is not persisted to a backing service.

#!/bin/sh
ARCH="x86_64"
CONTENTSET="rhel-7-server-rpms"
WEBTOKEN="<insert here>"
ACCESSTOKEN=$(curl -v https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token -d grant_type=refresh_token -d client_id=rhsm-api -d refresh_token=$WEBTOKEN | jq -r ".access_token")
#curl -H "Authorization: Bearer $ACCESSTOKEN" "https://api.access.redhat.com/management/v1/packages/cset/$CONTENTSET/arch/$ARCH?filter=latest&limit=100" | jq '.body[] | .name + " " + .version'
curl -H "Authorization: Bearer $ACCESSTOKEN" "https://api.access.redhat.com/management/v1/packages/cset/$CONTENTSET/arch/$ARCH?filter=latest&limit=1000" | python -mjson.tool
@mmmmmmpc
mmmmmmpc / vim-cmd_example.txt
Last active April 12, 2018 15:19
vim-cmd example
~ # vim-cmd vmsvc/getallvms
Vmid Name File Guest OS Version Annotation
8 jboss1 [Datastore] jboss1/jboss1.vmx rhel7_64Guest vmx-10
9 db [Datastore] db/db.vmx rhel7_64Guest vmx-10
~ # vim-cmd hostsvc/autostartmanager/update_autostartentry 8 PowerOn 45 2 GuestShutDown 1 yes
2Updated AutoStart order.
~ # vim-cmd vmsvc/getallvms
Vmid Name File Guest OS Version Annotation
8 jboss1 [Datastore] jboss1/jboss1.vmx rhel7_64Guest vmx-10
9 db [Datastore] db/db.vmx rhel7_64Guest vmx-10

Keybase proof

I hereby claim:

  • I am mperezco on github.
  • I am mpcolino (https://keybase.io/mpcolino) on keybase.
  • I have a public key ASBHhFEyoWXBvTaQm3B_F55OmJd-7ZdO0PZTEihZfIcvnwo

To claim this, I am signing this object:

+ fluentdargs=-vv
+ echo '>>>>>> ENVIRONMENT VARS <<<<<'
+ env
+ sort
>>>>>> ENVIRONMENT VARS <<<<<
DATA_VERSION=1.6.0
ES_CA=/etc/fluent/keys/ca
ES_CLIENT_CERT=/etc/fluent/keys/cert
ES_CLIENT_KEY=/etc/fluent/keys/key
ES_COPY=false
apiVersion: v1
data:
filter-k8s-core-rewrite.conf: |
<match journal.system**>
@type rewrite_tag_filter
rewriterule1 _SYSTEMD_UNIT ^origin-master.service journal.system.kubernetes.master
rewriterule2 _SYSTEMD_UNIT ^origin-node.service journal.system.kubernetes.node
</match>
fluent.conf: |
# This file is the fluentd configuration entrypoint. Edit with care.