Posts

  • Create self-signed Certificate with Cloudformation

    AWS Cloudformation allows you to create self-signed certificates during the stack creation process which you can then use to attach it to other AWS resources like an ELB.

    I recently discovered two ways of creating self-signed certificates automated with Cloudformation.

  • How to use puppet to check if a file / directory exists

    I searched for a very long time an easy way to use exists conditions on files and directories. I recently discovered that you can use the built-in function find_file for this.

  • Using variables to Call Puppet resources

    Sometimes you may wish to use variables for calling a specific Puppet resources instead of using if-else conditions. Luckily Puppet allows us to use variables in Puppet resource names like classes, modules etc. …

  • Google Gsuite as SAML provider in AEM

    Just recently I had to test my SAML automation for Adobe Experience Manager and faced the problem that I couldn’t test it because I don’t have a running SAML server I can use for testing. But luckily I found out how I can configure Google Suite as SAML provider in AEM.

  • Find cURL parameters for AEM

    To determine which URL and parameters we need to manage AEM via cURL or similar(Ruby/Python) we simply do the steps manually via a browser while using the Web-Developer tool Network from the browser or we use something like tcpdump or wireshark.

  • Use Ansible to automate Spotify - Part II

    The last time I wrote a small introduction about how to use the Spotify authentication modules to create an authentication token and how this authentication token can be consumed by other Spotify Ansible modules e.g. spotify_related_artists (link)[/ansible/2018/04/28/Use-Ansible-to-automate-Spotify-part-I.html]. This time I am going to show you several use cases which combine several modules/roles.

    • Create a playlist for a specific album
    • Add related artists top tracks to a new playlist
    • Play a specific playlist on a specific device
  • Use Ansible to automate Spotify - Part I

    To find new music with Spotify I thought about to go a new way … so why not using Ansible to automate Spotify ?

    • The modules
    • Step 1 - Prerequisites
    • Step 2 - Authentication
    • Step 3 - Let’s do something
  • Create own startup script for MacOSX Sierra

    A small description how to create your own Bash script which got’s loaded after login.

  • How to get a saved (Wifi) Password in MacOSx

    Short description of how to get a password e.g. Wifi Password in MacOSx.

    1. Open Spotlight Search by clicking on the magnifier at the bottom right of the taskbar or by using the keyboard combination Command + space

    2. Search for Keychain Access and open it

  • Ruby conditions if..else.. and RuboCop guard clause etc. ...

    Examples of how to make if else clauses in Ruby nicer and avoid rubocop errors like

    Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.

    Use self-assignment shorthand +=.

    Use a guard clause instead of wrapping the code inside a conditional expression.

  • Write your own AWS Ansible module

    To write our own Ansible module for using AWS services, we can rely on the already integrated utility for AWS which allows us to connect to the AWS services in an very easy way.

    Let’s assume we want to write a module to download and upload a object from S3 and save it to a path we define.

  • Python statements/conditions

    Following operators can be used in a loop or to check conditions in a if…else… statement:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    
    Check Boolean
    not False
    
    Check Int/String
    < 	less than
    <= 	less than or equal to
    > 	greater than
    >= 	greater than or equal to
    == 	equal
    != 	not equal
    
  • Managing ssh connection with an jumphost in between

    My useful SSH/SCP commands to work with a Jumphost, but never want to touch it.

    Open a Shell on the remot host

    To connect a Unix machine which is only accessible via a jumphost directlty, you need to store your public key in the ~/.ssh/authorized_key file on the jumphost. Afterwards you can access the remote host using following commands:

subscribe via RSS