Skip to content

extra2000/janusgraph-formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

janusgraph-formula

License Versioning Build
License: MIT semantic-release Build status

SaltStack Formula for JanusGraph.

Prerequisites

Make sure you have Podman v3.0.1 and above installed.

Available states

janusgraph

Meta-state (This is a state that includes other states).

This deploys the janusgraph podman pod.

janusgraph.config

This state will configure the janusgraph podman pod deployment.

janusgraph.config.clean

This state will remove the configuration of the janusgraph podman pod deployment.

janusgraph.selinux

This state will load SELinux security policy required by the janusgraph podman pod deployment. Only applicable for RedHat families.

janusgraph.selinux.clean

This state will remove SELinux security policy used by the janusgraph podman pod deployment.

janusgraph.podman

This state will deploy the janusgraph podman pod. The janusgraph podman image will be pulled automatically if the image doesn't exists.

janusgraph.podman.image

This state will pull the janusgraph podman image only.

janusgraph.podman.image.clean

This state will remove the janusgraph podman image.

janusgraph.podman.destroy

This state will destroy and remove the janusgraph podman pod.

janusgraph.podman.volume.clean

This state will remove the janusgraph podman pod's volume.

janusgraph.podman.clean

Meta-state (This is a state that includes other states).

This state will destroy the janusgraph podman pod, remove volume, and remove image.

janusgraph.clean

Meta-state (This is a state that includes other states).

This state will destroy the janusgraph podman pod, remove volume, remove image, and remove configurations for the janusgraph.

Testing

After finished applying janusgraph state, test the deployment by connecting to the database:

sudo podman run -it --rm --network=janusgraphnet -e GREMLIN_REMOTE_HOSTS=janusgraph-janusgraph-pod docker.io/janusgraph/janusgraph:0.5.3 ./bin/gremlin.sh

Then, try to create a data:

:remote connect tinkerpop.server conf/remote.yaml
:> g.addV('person').property('name', 'chris')
:> g.V().values('name')