{"id":43869263,"url":"https://github.com/stackhpc/ansible-role-cluster-nfs","last_synced_at":"2026-02-06T14:01:46.015Z","repository":{"id":47036787,"uuid":"166386817","full_name":"stackhpc/ansible-role-cluster-nfs","owner":"stackhpc","description":"A simple NFS server and client playbook intended for Cluster-as-a-Service cloud deployments","archived":false,"fork":false,"pushed_at":"2026-02-05T14:21:20.000Z","size":45,"stargazers_count":3,"open_issues_count":5,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-02-06T01:01:56.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackhpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-18T10:21:34.000Z","updated_at":"2025-03-12T15:30:39.000Z","dependencies_parsed_at":"2025-03-11T18:33:07.978Z","dependency_job_id":null,"html_url":"https://github.com/stackhpc/ansible-role-cluster-nfs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/stackhpc/ansible-role-cluster-nfs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-cluster-nfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-cluster-nfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-cluster-nfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-cluster-nfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackhpc","download_url":"https://codeload.github.com/stackhpc/ansible-role-cluster-nfs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-cluster-nfs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-06T14:01:44.979Z","updated_at":"2026-02-06T14:01:46.003Z","avatar_url":"https://github.com/stackhpc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Cluster NFS\n===============\n\nA simple NFS server and client playbook intended for Cluster-as-a-Service cloud\ndeployments.\n\nRequirements\n------------\n\nNone\n\nRole Variables\n--------------\n\n`nfs_fstype` is the type of filesystem to create on the disk. Optional, default \"xfs\".\n\n`nfs_disk_location` is the path to the block device on which to create a filesystem for export. Optional, default does not create a filesystem (e.g. as when exporting an existing directory).\n\n`nfs_export` is the path to exported filesystem mountpoint on the NFS server. Optional, default \"/srv\".\n\n`nfs_export_clients` is the client list allowed to mount the filesystem.\nSee \"Machine Name Formats` in `man exports`. Optional string, default \"*\".\nNote that multiple clients may be specified as a space-separated string (not a yaml list).\n\n`nfs_export_options` are the options to apply to the export. Optional, default \"rw,secure,root_squash\".\n\n`nfs_client_mnt_point` is the path to the mountpoint on the NFS clients. Optional, default \"/mnt\".\n\n`nfs_client_mnt_options` allows passing mount options to the NFS client. Optional, default \"defaults,nosuid,nodev,_netdev\".\n\n`nfs_client_mnt_state` desired state for the mount. As passed to the ansible `mount` \nbuiltin module. Can be one of \"absent\", \"mounted\", \"present\", \"unmounted\" or \n\"remounted\". Optional, default \"mounted\".\n\n`nfs_server` is the IP address or hostname of the NFS server.\n\n`nfs_enable`: a mapping with keys `server` and `client` - values are bools determining the role of the host.\n\nMultiple NFS client/server configurations may be provided by defining `nfs_configurations`. This should be a list of mappings with keys/values are as per the variables above. Omitted keys/values are filled from the corresponding variable. For example if all configurations require the same non-default client mount options, define `nfs_client_mnt_options` and omit the key \"nfs_client_mnt_options\" from all configuration mappings.\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\nAssuming:\n- An inventory group `nfs_server` containing a single host\n- An inventory group `nfs_clients` containing one or more clients\n- The hostvar `ansible_host` containing hosts' IP address\n\nthe example below configures a root-squashed read/write share which can only\nbe mounted by the clients.\n\n    ---\n    - hosts:\n      - nfs_server\n      - nfs_clients\n      become: yes\n      roles:\n        - role: stackhpc.nfs\n          nfs_enable:\n            server: \"{{ inventory_hostname in groups['nfs_server'] }}\"\n            clients: \"{{ inventory_hostname in groups['nfs_clients'] }}\"\n          nfs_server: \"{{ hostvars['nfs_server']['ansible_host'] }}\"\n          nfs_export_clients: \"{{ groups['nfs_clients'] | map('extract', hostvars, 'ansible_host') | join(' ') }}\"\n\nAuthor Information\n------------------\n\n- Holly Silk (\u003cholly@stackhpc.com\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fansible-role-cluster-nfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackhpc%2Fansible-role-cluster-nfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fansible-role-cluster-nfs/lists"}