Giter VIP home page Giter VIP logo

autofs's Introduction

sous-chefs.org website

Netlify Status OpenCollective OpenCollective License

The website is created using the static site generator, Hugo.

The live website is hosted on GitHub pages on the gh-pages branch. Netlify is used to preview changes on branches.

Development

  1. Install Hugo for your platform according to the instructions

  2. Create a feature branch to work on based off of main

  3. Clone the website code and start the development server. This will run a local hugo server that watches for changes to the source files. There will be a section in the output showing which port the site is served on (typically http://localhost:1313):

    git clone [email protected]:sous-chefs/website
    cd website
    git checkout -b my-feature-branch
    hugo server -ws .
  4. Commit your changes, push the branch to the remote and open a Pull Request.

    git push --set-upstream origin my-feature-branch

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

autofs's People

Contributors

axelrtgs avatar bby-bishopclark avatar damacus avatar gitter-badger avatar hansnqyr avatar jayhendren avatar jflemer-ndp avatar kitchen-porter avatar nvwls avatar ramereth avatar renovate[bot] avatar richardlock avatar tas50 avatar waffle-iron avatar xorima avatar xorimabot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autofs's Issues

Sous-Chefs Cookbook setup

Cookbook needs setting up for sous

  • metadata
  • terraform (admin)
  • standard files (bot)
  • cookstyle (bot)
  • labels standardise (bot)
  • github actions
  • circleci (admin)
  • rebase the files used.
  • Remove old Webhooks

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • sous-chefs/.github 3.0.0
  • actions/checkout v4
  • actionshub/chef-install 2.0.4
  • actionshub/test-kitchen 2.1.0
.github/workflows/stale.yml
  • actions/stale v8

  • Check this box to trigger a request for Renovate to run again on this repository

Custom entries in auto.master

IT was previously possible to add an attribute to a wrapper cookbook as below

default[:autofs][:auto_master_entries] = [
'/home /opt/.wiu/awesome_perl_script.pl nfsvers=3 --timeout=600'
]

This would create an entry in /etc/auto.master that told autofs to call off to a custom perl script.

command "automount --timeout xxx /etc/auto.mnt01" dose not work

πŸ—£οΈ Foreword

"automount --foreground --dont-check-daemon" has been already executed ,then run "automount --timeout xxx /etc/auto.mnt01" to change expire time value,but it seemed that new expire time dose not work.

πŸ‘» Brief Description

FIRST STEP: set on a server:
1.yum install nfs-utils rpcbind net-tools -y
2.mkdir -p /shared/{a,b}
3.vi /etc/exports
/shared *(rw,sync,no_root_squash)
4.systemctl stop firewalld
systemctl restart rpcbind
systemctl restart nfs

SECOND STEP: set on a client:
1.yum install autofs -y
2.vi /etc/auto.master
+auto.master
/mnt01 /etc/auto.mnt01
3.vi /etc/auto.mnt01
nfs -rw,soft,intr 172.168.130.72:/shared
the ip address 172.168.130.72 is the server's ip
4.systemctl stop firewalld
5.systemctl restart autofs
6.cd /mnt01/nfs
Run command 'cd /mnt01/nfs',we get the server's shared folder's content.wait about 5 minutes (timeout value set in /etc/autofs.conf),system while do unmount automatically.

THIRD STEP:
execute command 'automount --timeout 30 /etc/auto.mnt01' ,change expire time from 5 minutus to 30 secondes .but it seems dosen't work.

πŸ₯ž Cookbook version

autofs-5.1.4

πŸ‘©β€πŸ³ Chef-Infra Version

Version of chef-client in your environment.

🎩 Platform details

Operating system distribution and release version. Cloud provider if running in the cloud.
openEuler release 1.0

Steps To Reproduce

Steps to reproduce the behavior:
FIRST STEP: set on a server:
1.yum install nfs-utils rpcbind net-tools -y
2.mkdir -p /shared/{a,b}
3.vi /etc/exports
/shared *(rw,sync,no_root_squash)
4.systemctl stop firewalld
systemctl restart rpcbind
systemctl restart nfs

SECOND STEP: set on a client:
1.yum install autofs -y
2.vi /etc/auto.master
+auto.master
/mnt01 /etc/auto.mnt01
3.vi /etc/auto.mnt01
nfs -rw,soft,intr 172.168.130.72:/shared
the ip address 172.168.130.72 is the server's ip
4.systemctl stop firewalld
5.systemctl restart autofs
6.cd /mnt01/nfs
Run command 'cd /mnt01/nfs',we get the server's shared folder's content.wait about 5 minutes (timeout value set in /etc/autofs.conf),system while do unmount automatically.

THIRD STEP:
execute command 'automount --timeout 30 /etc/auto.mnt01' ,change expire time from 5 minutus to 30 secondes .but it seems dosen't work.

πŸš“ Expected behavior

A clear and concise description of what you expected to happen.
when execute command 'automount --timeout 30 /etc/auto.mnt01' ,when we dose not do any operations on mounted folder /mnt01/nfs, unmount will be triggerd in 30 secondes ,but also in 5 minuts

βž• Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

No resource or method named `declared_type=' for `Chef::Resource::AutomasterEntry ""'

Hi,
I'm trying to use your cookbook. I've added this line of code:

automaster_entry '/misc', '/etc/auto.misc'

Now I'm getting the following error:

Starting Chef Client, version 12.0.1
Compiling Cookbooks...
Added /root/chef-solo/cookbooks-2/resource/files/lib
[2015-05-16T18:16:58+02:00] WARN: Cloning resource attributes for package[build-essential] from prior resource (CHEF-3694)
[2015-05-16T18:16:58+02:00] WARN: Previous package[build-essential]: /root/chef-solo/cookbooks-3/heiko/recipes/skalibs.rb:18:in `block in from_file'
[2015-05-16T18:16:58+02:00] WARN: Current  package[build-essential]: /root/chef-solo/cookbooks-3/heiko/recipes/hosting.rb:16:in `block in from_file'

================================================================================
Recipe Compile Error in /root/chef-solo/cookbooks-3/heiko/recipes/hosting.rb
================================================================================

NoMethodError
-------------
No resource or method named `declared_type=' for `Chef::Resource::AutomasterEntry ""'

Cookbook Trace:
---------------
  /root/chef-solo/cookbooks-2/resource/files/lib/chef_resource/chef_dsl/chef_recipe_dsl_extensions.rb:62:in `buildbuild_resource_v2'
  /root/chef-solo/cookbooks-2/resource/files/lib/chef_resource/chef_dsl/chef_recipe_dsl_extensions.rb:53:in `build_resource'
  /root/chef-solo/cookbooks-2/resource/files/lib/chef_resource/chef_dsl/resource_container_module.rb:66:in `automaster_entry'
  /root/chef-solo/cookbooks-3/heiko/recipes/hosting_autofs.rb:9:in `from_file'
  /root/chef-solo/cookbooks-3/heiko/recipes/hosting.rb:25:in `from_file'

Relevant File Content:
----------------------
/root/chef-solo/cookbooks-2/resource/files/lib/chef_resource/chef_dsl/chef_recipe_dsl_extensions.rb:

 55:
 56:        def buildbuild_resource_v2(resource_class, *identity, created_at, &update_block)
 57:          resource = resource_class.open(*identity)
 58:          resource.run_context = run_context
 59:          resource.cookbook_name = cookbook_name
 60:          resource.recipe_name = recipe_name
 61:          resource.source_line = created_at
 62>>         resource.declared_type = resource_class.dsl_name
 63:          # Determine whether this resource is being created in the context of an enclosing Provider
 64:          resource.enclosing_provider = self.is_a?(Chef::Provider) ? self : nil
 65:          resource.params = @params
 66:
 67:          # Evaluate resource attribute DSL
 68:          resource.instance_eval(&update_block) if block_given?
 69:
 70:          # Freeze resource
 71:          resource.resource_fully_defined


Running handlers:
[2015-05-16T18:16:58+02:00] ERROR: Running exception handlers
Running handlers complete
[2015-05-16T18:16:58+02:00] ERROR: Exception handlers complete
[2015-05-16T18:16:58+02:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.416725405 seconds
[2015-05-16T18:16:58+02:00] ERROR: No resource or method named `declared_type=' for `Chef::Resource::AutomasterEntry ""'
[2015-05-16T18:16:58+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.

Chef13 Resource warnings

Warnings when running recipe which uses autofs cookbook:

   [2015-07-01T08:47:08+00:00] WARN: Class Chef::Provider::ReplaceOrAdd does not declare 'resource_name :replace_or_add'.
   [2015-07-01T08:47:08+00:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL.

map_entry resource does not work with Chef 14

The following recipe works just fine with Chef 12 and 13, but fails on Chef 14:

mapfile = '/etc/auto.mnt'

map_entry 'petalibrary' do
  user = node[cookbook_name]['automount']['remote_user']
  host = node[cookbook_name]['automount']['remote_host']
  dir = node[cookbook_name]['automount']['remote_dir']
  opts = node[cookbook_name]['automount']['opts']
  location ":sshfs\##{user}@#{host}:#{dir}"
  fstype 'fuse'
  options opts.join(',')
  map mapfile
end
       Converging 1 resources
       Recipe: cub_policy_lib_archivematica::default
         * map_entry[petalibrary] action create
           
           ================================================================================
           Error executing action `create` on resource 'map_entry[petalibrary]'
           ================================================================================
           
           NameError
           ---------
           undefined local variable or method `map' for #<#<Class:0x00000000049ab0d8>:0x00000000043ea810>
           
           Cookbook Trace:
           ---------------
           /tmp/kitchen/cache/cookbooks/autofs/resources/map_entry.rb:12:in `block in class_from_file'
           
           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/cub_policy_lib_archivematica/recipes/default.rb
           
            12: map_entry 'petalibrary' do
            13:   user = node[cookbook_name]['automount']['remote_user']
            14:   host = node[cookbook_name]['automount']['remote_host']
            15:   dir = node[cookbook_name]['automount']['remote_dir']
            16:   opts = node[cookbook_name]['automount']['opts']
            17:   location ":sshfs\##{user}@#{host}:#{dir}"
            18:   fstype 'fuse'
            19:   options opts.join(',')
            20:   map mapfile
            21: end
            22: 
           
           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/cub_policy_lib_archivematica/recipes/default.rb:12:in `from_file'
           
           map_entry("petalibrary") do
             action [:create]
             default_guard_interpreter :default
             declared_type :map_entry
             cookbook_name "cub_policy_lib_archivematica"
             recipe_name "default"
             location ":sshfs#[email protected]:/home/vagrant"
             fstype "fuse"
             options "_netdev,user,idmap=user,transform_symlinks,identityfile=/home/vagrant/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1000,umask=002,StrictHostKeyChecking=no"
             map "/etc/auto.mnt"
             key "petalibrary"
             mount_point "/mnt"
           end
           
           System Info:
           ------------
           chef_version=14.2.0
           platform=redhat
           platform_version=7.5
           ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
           program_name=/opt/chef/bin/chef-client
           executable=/opt/chef/bin/chef-client

New release to supermarket

Now that #25 is merged, could we get a version bump and release to Chef supermarket?
This would make it easier for people to use the Chef 14 compatible version.

Creating multiple entry in auto.master file for single automaster_entry '/-'

πŸ—£οΈ Foreword

Multiple entry created in auto.master file for single automaster_entry resource.
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

πŸ‘» Brief Description

A clear and concise description of what the bug is.

My recipe configurations:

automaster_entry '/-' do
  map '/etc/auto.top'
  options '--timeout 120'
end

It does create two entry in auto.master file -- observed bugs

/- /etc/auto.top --timeout 120
/top /etc/auto.top

It should be single line entry on auto.master file

/- /etc/auto.top --timeout 120

πŸ₯ž Cookbook version

Version of the cookbook where you are encountering the issue.

πŸ‘©β€πŸ³ Chef-Infra Version

tag versio 2.9.1
Version of chef-client in your environment.
chef 15.9.17

🎩 Platform details

Operating system distribution and release version. Cloud provider if running in the cloud.
CentOS-7.7

Steps To Reproduce

Steps to reproduce the behavior:
Configure chef recipe with following..
My recipe configurations:

automaster_entry '/-' do
  map '/etc/auto.top'
  options '--timeout 120'
end

πŸš“ Expected behavior

A clear and concise description of what you expected to happen.

should come-up with single entry in auto.master

/- /etc/auto.top --timeout 120 

βž• Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

Dependency issue with 'resource'

Hello,

My company says we can't use atufs cookbook because:

Autofs depends on some other cookbooks, one of which is β€˜resource’. There’s a syntax error in the resource cookbook so I can’t upload it to the chef server. The resource cookbook page said it is no longer being maintained.

Is there anyway this can be fixed?

Thanks

Ajay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.