Mesos documentation describes attributes as following
There is no way to start an agent with attribute w/o value, i. e. with key set only.
You'll get the following errors
Agent code should allow setting attributes without value according to documentation. This should be fixed in both mesos-agent binary and mesos-init-wrapper script
If documentation is wrong the web page describing roles has to be fixed.