So you would like to sometimes apply a nodes assigned classes and sometimes not? That sounds like a strange usecase. If it's just a case of 'sometimes' as in some actually puppetruns, you could use something like cronjobbed 'puppet agent --test --tags=<all,the,classes,I,do,want,to,apply>'.
If on the other hand your puppet environment is set up to apply classes to nodes that shouldn't be applied, you would be advised to look into how to only assign the necessary classes to the server group requiring them, rather than creating a parameter to every class to turn them on and off at will. Things like a custom fact that parses IP's or hostnames, returns a <server group> string and then using that as part of hiera.yaml and doing your classes assignment might be an idea.