From 975f66f2eebe9dadba04f275774d4ab83f74cf25 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 14:04:41 +0200 Subject: Adding upstream version 7.7.0+dfsg. Signed-off-by: Daniel Baumann --- .../google/cloud/roles/gcsfuse/README.md | 31 ++++++++++++++++++++++ .../google/cloud/roles/gcsfuse/defaults/main.yml | 2 ++ .../google/cloud/roles/gcsfuse/handlers/main.yml | 2 ++ .../google/cloud/roles/gcsfuse/meta/main.yml | 20 ++++++++++++++ .../google/cloud/roles/gcsfuse/tasks/debian.yml | 28 +++++++++++++++++++ .../google/cloud/roles/gcsfuse/tasks/main.yml | 4 +++ .../google/cloud/roles/gcsfuse/vars/main.yml | 2 ++ 7 files changed, 89 insertions(+) create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/README.md create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/meta/main.yml create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml create mode 100644 ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml (limited to 'ansible_collections/google/cloud/roles/gcsfuse') 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 -- cgit v1.2.3