Skip to content

extra2000/arangodb-formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arangodb-formula

License Versioning Build
License: MIT semantic-release Build status

SaltStack Formula for ArangoDB.

Prerequisites

Make sure you have Podman v3.0.1 and above installed. Then, continue to the following Subsections below.

Increase vm.max_map_count to at least 1024000

Execute:

sudo sysctl -w "vm.max_map_count=1024000"

Create /etc/sysctl.d/vm-max-map-counts.conf file with the following line:

vm.max_map_count=1024000

Available states

arangodb

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

This deploys the ArangoDB podman pod.

arangodb.config

This state will configure the arangodb podman pod deployment.

arangodb.config.clean

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

arangodb.selinux

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

arangodb.selinux.clean

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

arangodb.podman

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

arangodb.podman.image

This state will pull the arangodb podman image only.

arangodb.podman.image.clean

This state will remove the arangodb podman image.

arangodb.podman.destroy

This state will destroy and remove the arangodb podman pod.

arangodb.podman.volume.clean

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

arangodb.podman.clean

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

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

arangodb.clean

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

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

Testing

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

sudo podman run -it --rm --network=arangodbnet docker.io/arangodb/arangodb:3.7.12 arangosh --server.endpoint tcp://localhost:8529 --server.username root --server.authentication true

Then, try to create a database:

db._createDatabase("myapp");

To access ArangoDB Web UI, go to http://localhost:8529.