Skip to content

Instantly share code, notes, and snippets.

View lhmachado's full-sized avatar

Luiz Henrique Leal Machado lhmachado

View GitHub Profile
@lhmachado
lhmachado / README.md
Created January 11, 2018 13:43 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@lhmachado
lhmachado / tasks
Created May 18, 2020 18:04
Tasksfiles
---
# Install Java
- name: install the latest java version {{JAVA_VERSION}}
package:
name:
- java-{{JAVA_VERSION}}-openjdk
state: latest
# Download and extract binaries
- name: Download and Extract Gremlin {{GREMLIN_SERVER_VERSION}}
---
GREMLIN_SERVER_VERSION: 3.4.1
JAVA_VERSION: 1.8.0
GREMLIN_SERVER_INSTALL_PATH: /opt/apache-tinkerpop-gremlin-server-{{GREMLIN_SERVER_VERSION}}
---
- hosts: servers
become: yes
remote_user: ec2-user
roles:
- gremlin-server
servers:
hosts:
<your-intance-public-ip>:
vars:
ansible_ssh_private_key_file: <path of your ssh key>
[Unit]
Wants=network-online.target
After=network.target network-online.target
Description=Gremlin Server as a service
[Service]
User=root
#change this directory into your workspace
#mkdir workspace
WorkingDirectory=/opt/gremlin-server
#path to the executable bash script which executes the jar file
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
#!/bin/bash
set -e
cd /opt/gremlin-server
CONF_FILE=$1
# IP substitution hack borrowed from:
# https://github.com/htaox/NEAT/blob/94a004831cf89767e116d955192fc14ac82e5069/docker-scripts/gremlin-server-3.0.0/files/default_cmd#L5