summaryrefslogtreecommitdiffstats
path: root/ansible_collections/google/cloud/roles/gcsfuse
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/google/cloud/roles/gcsfuse
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/google/cloud/roles/gcsfuse')
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/README.md31
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml2
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml2
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/meta/main.yml20
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml28
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml4
-rw-r--r--ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml2
7 files changed, 89 insertions, 0 deletions
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/README.md b/ansible_collections/google/cloud/roles/gcsfuse/README.md
new file mode 100644
index 000000000..2da6d4d1c
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/README.md
@@ -0,0 +1,31 @@
+# gcsfuse
+
+This role configures the gcsfuse repository, and installs gcsfuse on your host.
+gcsfuse is a user-space file system for working with
+[Google Cloud Storage](https://cloud.google.com/storage/).
+
+**Important:** You should run gcsfuse as the user who will be using the file
+system, not as the root user. Do not use sudo either.
+
+After installed you can use it to mount by command:
+`gcsfuse bucket-name /mount/point`
+
+## Example Playbook
+
+Including an example of how to use your role (for instance, with variables
+passed in as parameters) is always nice for users too:
+
+```yaml
+- hosts: servers
+ tasks:
+ - include_role:
+ name: google.cloud.gcsfuse
+```
+
+## License
+
+GPLv3
+
+## Author Information
+
+[ericsysmin](https://ericsysmin.com)
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml b/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml
new file mode 100644
index 000000000..f51977148
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+# defaults file for google.cloud.gcsfuse
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml b/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml
new file mode 100644
index 000000000..db9f8ae03
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml
@@ -0,0 +1,2 @@
+---
+# handlers file for google.cloud.gcsfuse
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/meta/main.yml b/ansible_collections/google/cloud/roles/gcsfuse/meta/main.yml
new file mode 100644
index 000000000..05c57644d
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/meta/main.yml
@@ -0,0 +1,20 @@
+---
+galaxy_info:
+ role_name: gcsfuse
+ author: Eric Anderson
+ description: Ansible role to install gcsfuse
+ license: GPL-3.0
+ min_ansible_version: "2.9"
+ platforms:
+ - name: Ubuntu
+ versions:
+ - precise
+ - trusty
+ - xenial
+ - bionic
+ galaxy_tags:
+ - gcloud
+ - google
+ - gcsfuse
+ - fuse
+dependencies: []
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml b/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml
new file mode 100644
index 000000000..941f3bd42
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml
@@ -0,0 +1,28 @@
+---
+- name: Gcsfuse | Ensure gpg is installed
+ ansible.builtin.apt:
+ name: "gnupg"
+ register: task_result
+ until: task_result is success
+ retries: 10
+ delay: 2
+
+- name: Gcsfuse | Add an apt signing key
+ ansible.builtin.apt_key:
+ url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
+ state: present
+
+- name: Gcsfuse | Add the apt repository
+ ansible.builtin.apt_repository:
+ repo: deb http://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
+ state: present
+ filename: gcsfuse
+
+- name: Gcsfuse | Install gcsfuse
+ ansible.builtin.apt:
+ name: "gcsfuse"
+ update_cache: "yes"
+ register: task_result
+ until: task_result is success
+ retries: 10
+ delay: 2
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml b/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml
new file mode 100644
index 000000000..b7989f918
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml
@@ -0,0 +1,4 @@
+---
+# tasks file for google.cloud.gcsfuse
+- name: Main
+ ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
diff --git a/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml b/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml
new file mode 100644
index 000000000..019372d6c
--- /dev/null
+++ b/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml
@@ -0,0 +1,2 @@
+---
+# vars file for google.cloud.gcsfuse