I think this should default to $::environment.  This is useful so that if one does not specify the $environment in a manifest, puppet agent -t --environment will switch environments.